// This way you make comments /* or this way */ // compile program with the command: g++ myfirstprog.cc -o myfirstprog // (g++ is the c++ compiler by gnu (gcc)) // do ls -l and see that the executable myfirstprog was created // Run program with command: ./myfirstprog // // Now comment the line with std::cout and uncomment the line with cout // try to compile // Now uncomment the line with using namespace std // In the include section we include the header files we need. Header // files gives a description of what methods the classes have so that // the compiler knows that the method exists and what arguments it takes // STL (standard template library for C++) #include //using namespace std; // means that we don't have to write std::cout, but can // just write cout int main() // main function called at the beginning of program { // write Hello world std::cout << "Hello world" << std::endl; // cout << "Hello world" << endl; // remember to finish all lines with ; return 0; // means that execution went well }