Hello, World! #include using namespace std; int main() { cout << "Hello, world!\n"; return 0; } Hello, World! (another version) #include using std::cout; using std::endl; int main() { cout << "Hello, "; cout << "world!"; // the following outputs a newline, like '\n' but with a "buffer flush" cout << endl; return 0; } Hello, World! (Yet another version) // This is what the Hello World program looks like if we leave out the "using" statement #include int main() { std::cout << "Hello, "; std::cout << "world!"; std::cout << '\n'; return 0; }