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":13909,"date":"2015-05-06T12:21:10","date_gmt":"2015-05-06T17:21:10","guid":{"rendered":"https:\/\/mauriciocoopera.withknown.com\/2015\/mastery-19"},"modified":"2015-05-06T12:21:10","modified_gmt":"2015-05-06T17:21:10","slug":"mastery-19-10","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery-19-10\/","title":{"rendered":"Mastery 19"},"content":{"rendered":"
\n

Use of loops with “while”<\/p>\n

A\u00a0while<\/strong>\u00a0loop statement repeatedly executes a target statement as long as a given condition is true.<\/p>\n

Syntax:<\/h2>\n

The syntax of a while loop in C++ is:<\/p>\n

#d6d6d6; font-size: 12px; overflow: auto; color: #313131; background-color: #eeeeee;\">while<\/span>(<\/span>condition<\/span>)<\/span>\n{<\/span>\n   statement<\/span>(<\/span>s<\/span>);<\/span>\n}<\/span><\/pre>\n

Here,\u00a0statement(s)<\/strong>\u00a0may be a single statement or a block of statements. The\u00a0condition<\/strong>\u00a0may be any expression, and true is any non-zero value. The loop iterates while the condition is true.<\/p>\n

When the condition becomes false, program control passes to the line immediately following the loop.<\/p>\n

Flow Diagram:<\/h2>\n

\"Mastery<\/center><\/p>\n

Here, key point of the\u00a0while<\/em>\u00a0loop is that the loop might not ever run. When the condition is tested and the result is false, the loop body will be skipped and the first statement after the while loop will be executed.<\/p>\n

Example:<\/h2>\n
#d6d6d6; font-size: 12px; overflow: auto; color: #313131; background-image: url('http:\/\/www.tutorialspoint.com\/cplusplus\/images\/try-it.jpg') !important; background-attachment: initial !important; background-color: #eeeeee !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: 100% 0%; background-repeat: no-repeat !important;\">#include<\/a><\/span> <\/iostream><\/span>\nusing<\/span> namespace<\/span> std<\/span>;<\/span>\n \nint<\/span> main <\/span>()<\/span>\n{<\/span>\n   \/\/ Local variable declaration:<\/span>\n   int<\/span> a <\/span>=<\/span> 10<\/span>;<\/span>\n\n   \/\/ while loop execution<\/span>\n   while<\/span>(<\/span> a <\/span> 20<\/span> )<\/span>\n   {<\/span>\n       cout <\/span> \"value of a: \"<\/span>  a <\/span> endl<\/span>;<\/span>\n       a<\/span>++;<\/span>\n   }<\/span>\n \n   return<\/span> 0<\/span>;<\/span>\n}<\/span><\/span><\/span><\/span><\/span><\/pre>\n

When the above code is compiled and executed, it produces the following result:<\/p>\n

#d6d6d6; font-size: 12px; overflow: auto; color: #313131; background-color: #eeeeee;\">value of a<\/span>:<\/span> 10<\/span>\nvalue of a<\/span>:<\/span> 11<\/span>\nvalue of a<\/span>:<\/span> 12<\/span>\nvalue of a<\/span>:<\/span> 13<\/span>\nvalue of a<\/span>:<\/span> 14<\/span>\nvalue of a<\/span>:<\/span> 15<\/span>\nvalue of a<\/span>:<\/span> 16<\/span>\nvalue of a<\/span>:<\/span> 17<\/span>\nvalue of a<\/span>:<\/span> 18<\/span>\nvuale of a<\/span>:<\/span> 19
<\/span><\/pre>\n

Credits:<\/span><\/p>\n

<\/a>http:\/<\/wbr>\/<\/wbr>www.tutorialspoint.com\/<\/wbr>cplusplus\/<\/wbr>cpp_while_loop.htm<\/a><\/span><\/p>\n

#TC<\/a>1017 #Mastery<\/a>18\u00a0<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\n

Use of loops with “while”<\/p>\n

while<\/strong> loop statement repeatedly executes a target statement as long as a given condition is true.<\/p>\n

Syntax:<\/h2>\n

The syntax of a while loop in C++ is:<\/p>\n

#d6d6d6; font-size: 12px; overflow: auto; color: #313131; background-color: #eeeeee;\">while<\/span>(<\/span>condition<\/span>)<\/span>\n{<\/span>\n   statement<\/span>(<\/span>s<\/span>);<\/span>\n}<\/span><\/pre>\n

Here, statement(s)<\/strong> may be a single statement or a block of statements. The condition<\/strong> may be any expression, and true is any non-zero value. The loop iterates while the condition is true.<\/p>\n

When the condition becomes false, program control passes to the line immediately following the loop.<\/p>\n

Flow Diagram:<\/h2>\n<\/p>\n

Here, key point of the while<\/em> loop is that the loop might not ever run. When the condition is tested and the result is false, the loop body will be skipped and the first statement after the while loop will be executed.<\/p>\n

Example:<\/h2>\n
#d6d6d6; font-size: 12px; overflow: auto; color: #313131; background-image: url('http:\/\/www.tutorialspoint.com\/cplusplus\/images\/try-it.jpg') !important; background-attachment: initial !important; background-color: #eeeeee !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: 100% 0%; background-repeat: no-repeat !important;\">#include<\/a><\/span> <\/span>\nusing<\/span> namespace<\/span> std<\/span>;<\/span>\n \nint<\/span> main <\/span>()<\/span>\n{<\/span>\n   \/\/ Local variable declaration:<\/span>\n   int<\/span> a <\/span>=<\/span> 10<\/span>;<\/span>\n\n   \/\/ while loop execution<\/span>\n   while<\/span>(<\/span> a <\/span> 20<\/span> )<\/span>\n   {<\/span>\n       cout <\/span> \"value of a: \"<\/span>  a <\/span> endl<\/span>;<\/span>\n       a<\/span>++;<\/span>\n   }<\/span>\n \n   return<\/span> 0<\/span>;<\/span>\n}<\/span><\/span><\/span><\/span><\/span><\/pre>\n

When the above code is compiled and executed, it produces the following result:<\/p>\n

#d6d6d6; font-size: 12px; overflow: auto; color: #313131; background-color: #eeeeee;\">value of a<\/span>:<\/span> 10<\/span>\nvalue of a<\/span>:<\/span> 11<\/span>\nvalue of a<\/span>:<\/span> 12<\/span>\nvalue of a<\/span>:<\/span> 13<\/span>\nvalue of a<\/span>:<\/span> 14<\/span>\nvalue of a<\/span>:<\/span> 15<\/span>\nvalue of a<\/span>:<\/span> 16<\/span>\nvalue of a<\/span>:<\/span> 17<\/span>\nvalue of a<\/span>:<\/span> 18<\/span>\nvuale of a<\/span>:<\/span> 19
<\/span><\/pre>\n

Credits:<\/span><\/p>\n

<\/a>http:\/\/www.tutorialspoint.com\/cplusplus\/cpp_while_loop.htm<\/a><\/span><\/p>\n

#TC<\/a>1017 #Mastery<\/a>18 <\/span><\/p>\n<\/div>\n

Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[395,520,519,517,518,396,397,394,234,213,95,180,486,40,287],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/13909"}],"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\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=13909"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/13909\/revisions"}],"predecessor-version":[{"id":13910,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/13909\/revisions\/13910"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=13909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=13909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=13909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}