Here is HELLO.CPP, a very simple C++ program:
#include <iostream.h>
void main()
{
cout << "Hello, world\n";
}
This program is the C++ version of the C program HELLO.C. However, instead of including STDIO.H, the program includes IOSTREAM.H, and instead of a printf call, it uses an unfamiliar syntax with an undefined variable named cout, the bitwise left shift operator (<<), and a string.