#Mastery<\/a>01 \u00a0#MASTERY<\/a>01<\/p>\n I am doing this mastery again because i want to get the two points.<\/p>\n Well in this one I want to teach how to create and run a c++ from command line.<\/p>\n Im going to give you a couple of steps to make it easier to you to understand it:<\/p>\n \u00a0 \u00a0 \u00a01.- Open your editor (notepad, notepad++, sublime, jeditor, etc..).<\/p>\n \u00a0 \u00a0 \u00a02.- Save your program as a c++ file and in the end of the name add “.cpp” so the terminal will run it.<\/p>\n \u00a0 \u00a0 \u00a03.- Start coding.\u00a0<\/p>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3.1.- Include your libraries, ALWAYS include (#include \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3.2.- Before everything put “usingnamespace std;” so you don\u00b4t have to put it all over your code.<\/p>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3.3.- You will always have a “int main()” it doesn\u00b4t matter if you have functions or not.<\/p>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3.4.- ALWAYS at the end of the “int main()” put ” return 0;” is not really necesary eaither but every programmer \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 will tell you to put it.<\/p>\n \u00a0 \u00a0 \u00a04.- Open your ternimal (cygwin, mac, linux, etc..) wait until it recognize your computer and then put “cd” to change \u00a0 \u00a0 \u00a0 \u00a0directory then put “\/” to go were ever is your code you made in your editor.<\/p>\n \u00a0 \u00a0 \u00a05.- Finally after it compiles you have to execute it with “.\/a.exe” in wondows, “.\/a.out” on Mac an Linux.<\/p>\n \u00a0<\/p>\n Hope you understand and learn from it.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" #Mastery<\/a>01 #MASTERY<\/a>01<\/p>\n I am doing this mastery again because i want to get the two points.<\/p>\n Well in this one I want to teach how to create and run a c++ from command line.<\/p>\n Im going to give you a couple of steps to make it easier to you to understand it:<\/p>\n 1.- Open your editor (notepad, notepad++, sublime, jeditor, etc..).<\/p>\n 2.- Save your program as a c++ file and in the end of the name add “.cpp” so the terminal will run it.<\/p>\n 3.- Start coding. <\/p>\n