Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":4973,"date":"2015-02-16T23:44:13","date_gmt":"2015-02-17T05:44:13","guid":{"rendered":"http:\/\/luluisngel9.withknown.com\/2015\/mastery17"},"modified":"2015-02-16T23:44:13","modified_gmt":"2015-02-17T05:44:13","slug":"mastery17","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery17\/","title":{"rendered":"#mastery17"},"content":{"rendered":"
\n

#mastery17<\/a> #TC1017<\/a><\/p>\n

Primero se debe de llamar a la librería iostream, y así poder utilizar datos de entrada y salida.<\/p>\n

También se debe de definir el using namespace std.<\/p>\n

Una vez esto, se debe de introducir el programa principal, el int main.<\/p>\n

Se deben de definir las variables.<\/p>\n

Después, se debe de preguntar por la variable con el cin >><\/strong><\/p>\n

Después se hace uso de condicionales para declararle un valor a la variable a<\/strong><\/p>\n

Se utiliza el switch, y a cada caso se le asigna una acción.<\/p>\n

El formato para el uso de un switch-case es el siguiente:<\/p>\n

*Escribir switch<\/strong>, y después de esto y entre parentesis, escribir la variable de control.<\/strong><\/p>\n

*Escribir case<\/strong> y después una constante. Evaluar la expresion de control y checar las opciones para cada caso.<\/p>\n

*Terminar cada caso con un break<\/strong>, ya que esto hace que se termine cada operación por caso.<\/p>\n

*Usar default<\/strong> si ninguno de los casos anteriores se utilizó con el control de la variable. Es como un else<\/strong>, ya que se ejecuta cuando las demas condiciones no se cumplen.<\/p>\n

Se compila y se corre el programa.<\/p>\n

\"\"<\/p>\n

 <\/p>\n

Aquí está este código y otro ejemplo de como usar SWITCH-CASE:<\/p>\n

https:\/<\/wbr>\/<\/wbr>github.com\/<\/wbr>LuluisAngel\/<\/wbr>mastery17<\/a><\/span><\/span><\/p>\n

https:\/<\/wbr>\/<\/wbr>github.com\/<\/wbr>LuluisAngel\/<\/wbr>Ejemplo-SWITCH-CASE<\/a><\/span><\/span><\/p>\n

 <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

#mastery17 #TC1017Primero se debe de llamar a la librería iostream, y así poder utilizar datos de entrada y salida.También se debe de definir el using namespace std.Una vez esto, se debe de introducir el programa principal… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":105,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[166,116,40],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4973"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=4973"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4973\/revisions"}],"predecessor-version":[{"id":7532,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/4973\/revisions\/7532"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=4973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=4973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=4973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}