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":25596,"date":"2015-10-30T20:43:54","date_gmt":"2015-10-31T02:43:54","guid":{"rendered":"http:\/\/opezaimd.tumblr.com\/post\/132247495815"},"modified":"2015-10-30T20:43:54","modified_gmt":"2015-10-31T02:43:54","slug":"mastery-13-7","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery-13-7\/","title":{"rendered":"Mastery 13"},"content":{"rendered":"

On this mastery I will show you what are libraries in C++ and how to use them.<\/p>\n

<\/p>\n

As you may have noticed, the first line of code we\u2019ve been using is always #include <iostream>. This is called a library and they contain commands that you can use in your program. There are more of them, and you can check a list of libraries and their uses here<\/a>.\u00a0<\/i><\/b><\/p>\n

Library iostream includes the usage of cin and cout in our program, and strictly talking, that\u2019s all we\u2019ve been using for our programs. There\u2019s a library called cmath that includes the usage of more complex mathematical operations. We are going to focus of this library today and use the command for square root, this library will allow us to simply use the command sqrt instead of making all the manual calculations. So, do as follows:<\/p>\n

    \n
  1. Open the program we made in mastery 24<\/a><\/i><\/b><\/li>\n
  2. Add a variable called squareroot.<\/li>\n
  3. After the for loop, add the math operation with the new variable and the cmath command: squareroot = sqrt<\/b>(total)<\/li>\n
  4. Print the result.<\/li>\n<\/ol>\n

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

    <\/figure>\n

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

    <\/figure>\n

    Great! Now you know what are libraries and how to use them, congrats!<\/p>\n","protected":false},"excerpt":{"rendered":"

    On this mastery I will show you what are libraries in C++ and how to use them.<\/p>\n

    <\/p>\n

    As you may have noticed, the first line of code we’ve been using is always #include <iostream>. This is called a library and they contain commands that you can use in your program. There are more of them, and you can check a list of libraries and their uses here<\/a>. <\/i><\/b><\/p>\n

    Library iostream includes the usage of cin and cout in our program, and strictly talking, that’s all we’ve been using for our programs. There’s a library called cmath that includes the usage of more complex mathematical operations. We are going to focus of this library today and use the command for square root, this library will allow us to simply use the command sqrt instead of making all the manual calculations. So, do as follows:<\/p>\n

      \n
    1. Open the program we made in mastery 24<\/a><\/i><\/b><\/li>\n
    2. Add a variable called squareroot.<\/li>\n
    3. After the for loop, add the math operation with the new variable and the cmath command: squareroot = sqrt<\/b>(total)<\/li>\n
    4. Print the result.<\/li>\n<\/ol>\n

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

      <\/figure>\n

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

      <\/figure>\n

      Great! Now you know what are libraries and how to use them, 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,165,40,611],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25596"}],"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=25596"}],"version-history":[{"count":7,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25596\/revisions"}],"predecessor-version":[{"id":29906,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/25596\/revisions\/29906"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=25596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=25596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=25596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}