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 1930

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 1930

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 1930

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 1930

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 1930

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 1930

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 1930

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 1930
{"id":9082,"date":"2015-04-05T16:45:26","date_gmt":"2015-04-05T21:45:26","guid":{"rendered":"https:\/\/a01224845.withknown.com\/2015\/tc1017-mastery18"},"modified":"2015-04-05T16:45:26","modified_gmt":"2015-04-05T21:45:26","slug":"tc1017-mastery18","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/tc1017-mastery18\/","title":{"rendered":"#TC1017 #Mastery18"},"content":{"rendered":"
\n

Nested if<\/tt> and if-else<\/tt> statements<\/h1>\n

The if-else<\/code> statement allows a choice to be made between two possible alternatives. Sometimes a choice must be made between more than two possibilities. For example the sign function in mathematics returns -1 if the argument is less than zero, returns +1 if the argument is greater than zero and returns zero if the argument is zero. The following C++ statement implements this function:<\/p>\n

if (x < 0)\n   sign = -1;\nelse\n   if (x == 0)\n      sign = 0;\n   else\n      sign = 1;\n<\/pre>\n

This is an if-else<\/code> statement in which the statement following the else<\/code> is itself an if-else<\/code> statement. If x<\/code> is less than zero then sign<\/code> is set to -1, however if it is not less than zero the statement following the else<\/code> is executed. In that case if x<\/code> is equal to zero then sign<\/code> is set to zero and otherwise it is set to 1.<\/p>\n

Novice programmers often use a sequence of if<\/code> statements rather than use a nested if-else<\/code> statement. That is they write the above in the logically equivalent form:<\/p>\n

if (x < 0)\n   sign = -1;\nif (x == 0)\n   sign = 0;\nif (x > 0)\n   sign = 1;\n<\/pre>\n

This version is not recommended since it does not make it clear that only one of the assignment statements will be executed for a given value of x<\/code>. Also it is inefficient since all three conditions are always tested.<\/p>\n

http:\/<\/wbr>\/<\/wbr>www.macs.hw.ac.uk\/<\/wbr>~pjbk\/<\/wbr>pathways\/<\/wbr>cpp1\/<\/wbr>node99.html<\/a><\/span><\/p>\n

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

Nested if and if-else statementsThe if-else statement allows a choice to be made between two possible alternatives. Sometimes a choice must be made between more than two possibilities. For example the sign functio… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[],"class_list":["post-9082","post","type-post","status-publish","format-standard","hentry","category-blogs","category-syndicated","category-tc1017blogs"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9082","targetHints":{"allow":["GET"]}}],"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\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=9082"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9082\/revisions"}],"predecessor-version":[{"id":13361,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9082\/revisions\/13361"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=9082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=9082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=9082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}