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":20974,"date":"2015-09-13T13:44:14","date_gmt":"2015-09-13T18:44:14","guid":{"rendered":"https:\/\/ricardonewton.withknown.com\/2015\/mastery01--ability-to-create-c-file-and-run-from-command"},"modified":"2015-09-13T13:44:14","modified_gmt":"2015-09-13T18:44:14","slug":"mastery01-ability-to-create-c-file-and-run-from-command-line","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/mastery01-ability-to-create-c-file-and-run-from-command-line\/","title":{"rendered":"#Mastery01 -Ability to create C++ file and run from command line"},"content":{"rendered":"
\n

Hi today I\u00b4m doing #Mastery01<\/a> that is about knowing how to create a c++ file and run it, and we are making the \u201cHow are you doing?\u201d program that is actually pretty simple and easy to do. <\/span><\/p>\n

First, you have to make sure you have a text editor. The best option is to have one specially made for programming because that way, when you are writing your code line, the editor marks each word depending on its function. This makes easier, for instance, to realize when you are coding wrong. For this, I use atom, and it is available for both operating systems. <\/span><\/p>\n

Another thing you need to have is a compiler, if you use Mac, it is all ready installed and it\u00b4s called terminal. If you use Windows, you con download Cygwin. Make sure, when installing Cygwin, that you don\u00b4t download the whole package, just the stuff you need for the course (you can check out Ken\u00b4s video on how to download Cygwin for Windows on his channel.) Link: <\/a>https:\/<\/wbr>\/<\/wbr>www.youtube.com\/<\/wbr>watch?v=i2h_976SpV0<\/a><\/span><\/p>\n

So these are the steps you need to follow to program How are you doing? In c++:<\/span>\u00a0<\/p>\n

First you have to open up your text editor, and make sure you save it first (easier for me) with any name you want with ending in .cpp. Make sure you remember where you saved it because you are going to need the direction when compiling.<\/span><\/p>\n

\"\"<\/span><\/p>\n

You need to start on first line writing #include<\/a> <\/iostream><\/strong><\/span><\/p>\n

And second line<\/span> using namespace std;<\/span><\/strong><\/p>\n

And finishing your code, you have to write retun 0; }<\/strong> (you can already write it down if you want to).<\/span><\/p>\n

Remember to be careful with spaces and most important, don\u2019t forget to put a \u201c;<\/strong>\u201d at the ending of each line. Don\u00b4t worry if you miss one, you the compiler will show up the error.<\/span><\/p>\n

\u00a0<\/p>\n

\"\"<\/span><\/p>\n

\u00a0<\/span><\/p>\n

Then, after the first two lines, type int main() {cout . The cout command means that it is going to print anything that is following that. Typing words in between \u201c\u201d gives them a string value. The endl;<\/strong> means end line.<\/strong><\/span><\/p>\n

\"\"<\/span><\/p>\n

<\/p>\n

Finally, you have to open your compiler. First you need to change directory, for this, you have to type cd Documents\/<\/strong> (This obviously if you have the file saved on your documents.)<\/span><\/p>\n

\u00a0<\/p>\n

\"\"<\/span><\/p>\n

\u00a0<\/p>\n

Then type ls<\/strong>\u00a0(LS), which gives the list of documents saved on that direction. When you find your document (howareyoudoing.cpp), type g++ howareyoudoing.cpp<\/strong>, this transforms your code in to g++.<\/span><\/p>\n

\u00a0<\/p>\n

At last, you have to type to run it, .\/a.out<\/strong> (if using Linux or Mac) or .\/a.exe<\/strong> (when using Windows). And that\u00b4s it! You have finished your first program.<\/span><\/p>\n

#Mastery01<\/a><\/span><\/p>\n

\u00a0<\/p>\n

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

\n

Hi today I´m doing #Mastery01<\/a> that is about knowing how to create a c++ file and run it, and we are making the “How are you doing?” program that is actually pretty simple and easy to do. <\/span><\/p>\n

First, you have to make sure you have a text editor. The best option is to have one specially made for programming because that way, when you are writing your code line, the editor marks each word depending on its function. This makes easier, for instance, to realize when you are coding wrong. For this, I use atom, and it is available for both operating systems. <\/span><\/p>\n

Another thing you need to have is a compiler, if you use Mac, it is all ready installed and it´s called terminal. If you use Windows, you con download Cygwin. Make sure, when installing Cygwin, that you don´t download the whole package, just the stuff you need for the course (you can check out Ken´s video on how to download Cygwin for Windows on his channel.) Link: <\/a>https:\/\/www.youtube.com\/watch?v=i2h_976SpV0<\/a><\/span><\/p>\n

So these are the steps you need to follow to program How are you doing? In c++:<\/span> <\/p>\n

First you have to open up your text editor, and make sure you save it first (easier for me) with any name you want with ending in .cpp. Make sure you remember where you saved it because you are going to need the direction when compiling.<\/span><\/p>\n

\"\"<\/span><\/p>\n

You need to start on first line writing #include<\/a> <\/strong><\/span><\/p>\n

And second line<\/span> using namespace std;<\/span><\/strong><\/p>\n

And finishing your code, you have to write retun 0; }<\/strong> (you can already write it down if you want to).<\/span><\/p>\n

Remember to be careful with spaces and most important, don’t forget to put a “;<\/strong>” at the ending of each line. Don´t worry if you miss one, you the compiler will show up the error.<\/span><\/p>\n

 <\/p>\n

\"\"<\/span><\/p>\n

 <\/span><\/p>\n

Then, after the first two lines, type int main() {cout . The cout command means that it is going to print anything that is following that. Typing words in between “” gives them a string value. The endl;<\/strong> means end line.<\/strong><\/span><\/p>\n

\"\"<\/span><\/p>\n

<\/p>\n

96<\/p>\n

<\/p>\n

Normal
\n 0<\/p>\n

21<\/p>\n

false
\n false
\n false<\/p>\n

ES-TRAD
\n X-NONE
\n X-NONE<\/p>\n

<\/p>\n

<\/p>\n

\/* Style Definitions *\/
\ntable.MsoNormalTable
\n\t{mso-style-name:”Tabla normal”;
\n\tmso-tstyle-rowband-size:0;
\n\tmso-tstyle-colband-size:0;
\n\tmso-style-noshow:yes;
\n\tmso-style-priority:99;
\n\tmso-style-parent:””;
\n\tmso-padding-alt:0cm 5.4pt 0cm 5.4pt;
\n\tmso-para-margin:0cm;
\n\tmso-para-margin-bottom:.0001pt;
\n\tmso-pagination:widow-orphan;
\n\tfont-size:12.0pt;
\n\tfont-family:Calibri;
\n\tmso-ascii-font-family:Calibri;
\n\tmso-ascii-theme-font:minor-latin;
\n\tmso-hansi-font-family:Calibri;
\n\tmso-hansi-theme-font:minor-latin;
\n\tmso-fareast-language:EN-US;}<\/p>\n

<\/p>\n

Finally, you have to open your compiler. First you need to change directory, for this, you have to type cd Documents\/<\/strong> (This obviously if you have the file saved on your documents.)<\/span><\/p>\n

 <\/p>\n

\"\"<\/span><\/p>\n

 <\/p>\n

Then type ls<\/strong> (LS), which gives the list of documents saved on that direction. When you find your document (howareyoudoing.cpp), type g++ howareyoudoing.cpp<\/strong>, this transforms your code in to g++.<\/span><\/p>\n

 <\/p>\n

At last, you have to type to run it, .\/a.out<\/strong> (if using Linux or Mac) or .\/a.exe<\/strong> (when using Windows). And that´s it! You have finished your first program.<\/span><\/p>\n

#Mastery01<\/a><\/span><\/p>\n

 <\/p>\n

\"\"<\/span><\/p>\n<\/div>\n","protected":false},"author":254,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[186,95,57],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/20974"}],"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\/254"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=20974"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/20974\/revisions"}],"predecessor-version":[{"id":21340,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/20974\/revisions\/21340"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=20974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=20974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=20974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}