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":2871,"date":"2015-01-31T11:04:35","date_gmt":"2015-01-31T17:04:35","guid":{"rendered":"http:\/\/alanvaldo.withknown.com\/2015\/fun-with-numbers-wsq03"},"modified":"2015-01-31T11:04:35","modified_gmt":"2015-01-31T17:04:35","slug":"fun-with-numbers-wsq03-3","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/fun-with-numbers-wsq03-3\/","title":{"rendered":"Fun with numbers! #WSQ03"},"content":{"rendered":"
\n

\n 2 min read <\/span>\n <\/p>\n

This is a program that asks you for two numbers, you type them and then it calculates the sum, difference, product, division and the remainder of the division of the two numbers.\"Screenshot<\/p>\n

The first thing I did was to download a word processor called Notepad++, to write the code there and save it as a C++ source file. When saving the code, you need to give it the name you want and put at the end .cpp like this: yourprogram.cpp. This is necessary to enable the program to be compiled. Now that you named the file, you need to save it in the User’s folder located in: C:\/cygwin\/home\/Users(your computer’s name). Now, open the Cygwin Terminal, write: g++ yourprogram.cpp and click enter. It won’t be compiled if your program have a sintax error and the black screen will return an error message, if it doesn’t have any, it won’t return anything, like in the image below.<\/p>\n

\"Screenshot<\/p>\n

Once your program is compiled, you can run it, just type: .\/a.exe<\/p>\n

and press Enter.<\/p>\n

\"\"<\/p>\n

To save and run the code, I watched this video made by Mr. Ken Bauer. <\/p>\n

https:\/<\/wbr>\/<\/wbr>www.youtube.com\/<\/wbr>watch?v=5lJ6evIAndo&list=PLhMUtn5hqperLvPZugufj25uy8KW9ZrNP&index=3<\/a><\/p>\n

To write the code, I watched this one also made by Mr. Ken.<\/p>\n

https:\/<\/wbr>\/<\/wbr>www.youtube.com\/<\/wbr>watch?v=JFncCPhD76M&feature=youtu.be&list=PLhMUtn5hqperLvPZugufj25uy8KW9ZrNP<\/a><\/p>\n

In this video he explains how to print messages in the screen by using the object cout <\/strong>and this arrows << <\/strong>and he also explains how to save the input (what the person types), as a variable by using the objetc cin <\/strong>and the arrows >><\/strong>.<\/p>\n

I also consulted the pages 4-8 of the book ”How to think like a computer scientist” written by Allen B. Downey.<\/p>\n

 <\/p>\n

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

2 min read <\/p>\n

This is a program that asks you for two numbers, you type them and then it calculates the sum, difference, product, division and the remainder of the division of the two numbers.The first thing I did was to downlo… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":56,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/2871"}],"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\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=2871"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/2871\/revisions"}],"predecessor-version":[{"id":7470,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/2871\/revisions\/7470"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=2871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=2871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=2871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}