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":24815,"date":"2015-10-28T13:58:06","date_gmt":"2015-10-28T19:58:06","guid":{"rendered":"https:\/\/octavioirg.wordpress.com\/?p=120"},"modified":"2015-10-28T13:58:06","modified_gmt":"2015-10-28T19:58:06","slug":"mastery11-mastery12","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery11-mastery12\/","title":{"rendered":"Mastery11 & Mastery12"},"content":{"rendered":"

This post is for mastery points 11 and 12.<\/p>\n

\"CC<\/a>
CC licensed photo by Mario Klingemann on Flickr<\/figcaption><\/figure>\n

I created a video explaining how to create a function and then call it later in your code. Believe me it’s really easy.<\/p>\n

First you should know that a function is a predefined piece of code contained like in a capsule. Each time ou need the code you call the function and use the code inside of it. You can write your own functions or use the functions that are contained in the different C++ libraries. \u00a0Another definitions for function could be:\u00a0“a group of statements that is given a name, and which can be called from some point of the program”.<\/p>\n

To create a function you need to write the type of data that its going to return, because functions have to return something. Then you have to name your function and say what its going to transform. That’s right, as you may have figured out, functions take something, perform a transformation and return something else. It’s like a little a machine.<\/p>\n

Look at the following example:<\/p>\n

\/\/ function example<\/cite>\n#include <iostream>\nusing<\/var> namespace<\/var> std;\n\nint<\/var> addition (int<\/var> a, int<\/var> b) \/*the first int means that this function is going to return an interger, the second and third int's mean that this function takes an int called \"a\" \nanother int called \"b\".*\/\n{\n  int<\/var> r;\n  r=a+b;\n  return<\/var> r;\n}\n\/*in this part of the function you declare another variable, this is called a local variable because is used only in the function. The variable is going to store the value of the sum of \"a\" and \"b\". Then you need to say what is going to return the function, in this cases we return r becauce that is the value we want.*\/\nint<\/var> main ()\n{\n  int<\/var> z;\n  z = addition (5,3);\n  cout << \"The result is \"<\/kbd> << z;\n}<\/code><\/pre>\n

References:<\/p>\n

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

This post is for mastery points 11 and 12. I created a video explaining how to create a function and then call it later in your code. Believe me it’s really easy. First you should know that a function is a predefined piece of code contained like in a capsule. Each time ou need the […]\"\"<\/p>\n","protected":false},"author":231,"featured_media":24814,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[789,128,129,62],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24815"}],"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\/231"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=24815"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24815\/revisions"}],"predecessor-version":[{"id":24816,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24815\/revisions\/24816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/24814"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=24815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=24815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=24815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}

http:\/\/www.cplusplus.com\/doc\/tutorial\/functions\/<\/a><\/p>\n