Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":27423,"date":"2015-11-24T21:24:08","date_gmt":"2015-11-25T03:24:08","guid":{"rendered":"http:\/\/opezaimd.tumblr.com\/post\/133904163660"},"modified":"2015-11-24T21:24:08","modified_gmt":"2015-11-25T03:24:08","slug":"mastery-17-10","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery-17-10\/","title":{"rendered":"Mastery 17"},"content":{"rendered":"

On this mastery I\u2019ll show you what and how to use the conditional switch in C++.<\/p>\n

Switch is a statement that tests a variable for equality in a list of given conditions. It is somehow a summarized version of IF when you have a lot of conditions.\u00a0<\/p>\n

This flow chart may help you understand better, and this webpage <\/a><\/i><\/b>too:<\/p>\n

<\/figure>\n

The default syntax of switch goes like this:<\/p>\n

switch (expression)\ncase \u201ccondition\u201d : outcome\n[default:statement]    \/\/This is used when the variable input isn\u2019t a valid option.<\/pre>\n

So, for the purpose of this mastery, lets create a program were the user can input his points on masteries so far and tell him if his good or screwed. Do as follows:<\/p>\n

    \n
  1. Create our \u201cbasic\u201d program.<\/li>\n
  2. Inside the int, declare a char variable with an assigned value.<\/li>\n
  3. Use switch to condition the outcome and tell the user if his good or screwed.<\/li>\n<\/ol>\n

    Your program should look something like this:<\/p>\n

    <\/figure>\n

    Now let\u2019s test it:<\/p>\n

    <\/figure>\n

    Let\u2019s just play with another value:<\/p>\n

    <\/figure>\n

    Great! Now you know what and how to use switch conditional.<\/p>\n","protected":false},"excerpt":{"rendered":"

    On this mastery I’ll show you what and how to use the conditional switch in C++.<\/p>\n

    Switch is a statement that tests a variable for equality in a list of given conditions. It is somehow a summarized version of IF when you have a lot of conditions. <\/p>\n

    This flow chart may help you understand better, and this webpage <\/a><\/i><\/b>too:<\/p>\n

    <\/figure>\n

    The default syntax of switch goes like this:<\/p>\n

    switch (expression)\ncase “condition” : outcome\n[default:statement]    \/\/This is used when the variable input isn’t a valid option.<\/pre>\n

    So, for the purpose of this mastery, lets create a program were the user can input his points on masteries so far and tell him if his good or screwed. Do as follows:<\/p>\n

      \n
    1. Create our “basic” program.<\/li>\n
    2. Inside the int, declare a char variable with an assigned value.<\/li>\n
    3. Use switch to condition the outcome and tell the user if his good or screwed.<\/li>\n<\/ol>\n

      Your program should look something like this:<\/p>\n

      <\/figure>\n

      Now let’s test it:<\/p>\n

      <\/figure>\n

      Let’s just play with another value:<\/p>\n

      <\/figure>\n

      Great! Now you know what and how to use switch conditional.<\/p>\n","protected":false},"author":230,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[219,116,347,40,611],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27423"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/230"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=27423"}],"version-history":[{"count":23,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27423\/revisions"}],"predecessor-version":[{"id":30412,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27423\/revisions\/30412"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=27423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=27423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=27423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}