cppforever.com

Hello world

//simple_cpp_program.cpp
#include <iostream> // preprocessor directive

int main() //function header
{//beginning of function body
using namespace std;
cout << "Hello C++";//output
cout << endl;//new line
return 0;//it ends main()
}//end of function body