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":24694,"date":"2015-10-28T10:20:59","date_gmt":"2015-10-28T16:20:59","guid":{"rendered":"http:\/\/opezaimd.tumblr.com\/post\/132089068425"},"modified":"2015-10-28T10:20:59","modified_gmt":"2015-10-28T16:20:59","slug":"mastery-19-4","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery-19-4\/","title":{"rendered":"Mastery 19"},"content":{"rendered":"

On this mastery I\u2019m going to show you what\u00a0\u201cwhile\u201d loop in C++ is and how to use it.<\/p>\n

The while loop consists of something happens WHILE a condition is given. For example: WHILE x is greater or equal than 0, something will happen, and this process will continue to happen WHILE this condition is true.<\/p>\n

For the purpose of these mastery, we will use a function and a while loop to continue printing a character while the condition is true.\u00a0<\/p>\n

We want to print n amount of hashtags (#) because we really LOVE hashtags. So the user will input the amount of hashtags he wants to print and the program should be able to print that amount of hashtags. So, do as follows:<\/p>\n

    \n
  1. Write our\u00a0\u201cbasic code\u201d and leave some space to write a function as we learn on masteries 11 and 12<\/a>.<\/i><\/b><\/li>\n
  2. Write a function of type CHAR (because we will use characters) that prints a # when you return its value.<\/li>\n
  3. Inside int main (), declare the variable, and ask the user for it.<\/li>\n
  4. Now, we will use the WHILE loop. So until now, your code should look something like this:<\/li>\n<\/ol>\n
    <\/figure>\n

    Now, for the WHILE loop, we want to ask the user for an x amount of times the character # will print, so we need this:<\/p>\n

    <\/figure>\n

    The code inside the while loop will continue to happen until x = 0. So your code should work like this:<\/p>\n

    <\/figure>\n

    And that\u2019s about it, you now know how to use while loop with a function, congrats!<\/p>\n","protected":false},"excerpt":{"rendered":"

    On this mastery I’m going to show you what “while” loop in C++ is and how to use it.<\/p>\n

    The while loop consists of something happens WHILE a condition is given. For example: WHILE x is greater or equal than 0, something will happen, and this process will continue to happen WHILE this condition is true.<\/p>\n

    For the purpose of these mastery, we will use a function and a while loop to continue printing a character while the condition is true. <\/p>\n

    We want to print n amount of hashtags (#) because we really LOVE hashtags. So the user will input the amount of hashtags he wants to print and the program should be able to print that amount of hashtags. So, do as follows:<\/p>\n

      \n
    1. Write our “basic code” and leave some space to write a function as we learn on masteries 11 and 12<\/a>.<\/i><\/b><\/li>\n
    2. Write a function of type CHAR (because we will use characters) that prints a # when you return its value.<\/li>\n
    3. Inside int main (), declare the variable, and ask the user for it.<\/li>\n
    4. Now, we will use the WHILE loop. So until now, your code should look something like this:<\/li>\n<\/ol>\n
      <\/figure>\n

      Now, for the WHILE loop, we want to ask the user for an x amount of times the character # will print, so we need this:<\/p>\n

      <\/figure>\n

      The code inside the while loop will continue to happen until x = 0. So your code should work like this:<\/p>\n

      <\/figure>\n

      And that’s about it, you now know how to use while loop with a function, congrats!<\/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,115,40,611],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24694"}],"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=24694"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24694\/revisions"}],"predecessor-version":[{"id":24695,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24694\/revisions\/24695"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=24694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=24694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=24694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}