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":24459,"date":"2015-09-18T16:17:30","date_gmt":"2015-09-18T22:17:30","guid":{"rendered":"https:\/\/myfreakingcrazythoughts.wordpress.com\/?p=104"},"modified":"2015-09-18T16:17:30","modified_gmt":"2015-09-18T22:17:30","slug":"basic-output-printing-and-input-text-based-in-c-4","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/basic-output-printing-and-input-text-based-in-c-4\/","title":{"rendered":"Basic output (printing) and input (text based) in C++"},"content":{"rendered":"

A computer program can do two main things, ask for information or give the user new information.<\/p>\n

This two concepts are input and output, and it\u2019s what we are going to talk about in this post.<\/p>\n

First, their definition:<\/p>\n

Output: <\/strong><\/p>\n

Any information that has been processed by and sent out from a computer or similar device is considered output.<\/p>\n

Input:<\/strong><\/p>\n

Any information or data that is sent to a computer for processing is considered input. Input or user input is most often sent to the computer using an input device such as a keyboard or mouse.<\/p>\n

\"Input<\/p>\n

Header Files:<\/em><\/strong><\/p>\n

To do input and output, you will need to load the iostream header file.<\/p>\n

Like this:<\/p>\n

<\/p>\n

\n
#include <iostream>  <\/span>\/\/ I\/O<\/span>\n\n#include <fstream>   <\/span>\/\/ file I\/O<\/span>\n\n#include <iomanip>   <\/span>\/\/ format manipulation<\/span>\n\n#include <string><\/span>\n<\/pre>\n<\/div>\n

\u00a0<\/em><\/strong><\/p>\n

Which means that you\u2019re confirming that your program will have the ability to receive and send information and manipulate it as you tell it to do it.<\/p>\n

Streams:<\/em><\/strong><\/p>\n

There only exist 3 streams, which are:<\/p>\n

Cout (terminal output)<\/p>\n

Cin (Terminal input)<\/p>\n

Cerr (error output) Mosly used for error messages.<\/p>\n

Here are some code examples where you can see\u00a0Cout\u00a0<\/strong>and\u00a0Cin:<\/strong><\/p>\n

<\/p>\n

\n
#include <iostream><\/span>\nusing<\/span> namespace<\/span> std;\n\nint<\/span> main<\/span> ()\n{\n  int<\/span> v1, v2;\n  int<\/span> sum =<\/span>0<\/span>;\n\n  cout<<<\/span> \"Please introduce the lower bound of the range:  \"<\/span>;\n  cin>><\/span> v1;\n  cout<<<\/span> \"Please introduce the higher bound of the range:  \"<\/span>;\n  cin>><\/span> v2;\n\n  int<\/span> number =<\/span>v1;\n  while<\/span> (number<=<\/span>v2){\n    sum=<\/span> sum+<\/span>number;\n    number++<\/span>;\n\n  }\n  cout<<<\/span> \"The inclusive sum is:  \"<\/span><<<\/span>sum<<<\/span>endl;\n  return<\/span> 0<\/span>;\n\n\n}\n<\/pre>\n<\/div>\n

I really hope this post can help to solve your doubts about Input\/Output in C++, if you want to know more abot this I will let you the link of a really good page!<\/a><\/p>\n

Once again, feel free to ask anything and I will be happy to answer.<\/p>\n

Have a nice day!<\/p>\n

-The Admin.<\/p>\n

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

A computer program can do two main things, ask for information or give the user new information. This two concepts are input and output, and it’s what we are going to talk about in this post. First, their definition: Output:… Continue Reading →<\/a>\"\"<\/p>\n","protected":false},"author":259,"featured_media":24457,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[582,79,206,619,62,617,46],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24459"}],"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\/259"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=24459"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24459\/revisions"}],"predecessor-version":[{"id":24460,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/24459\/revisions\/24460"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/24457"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=24459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=24459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=24459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}