Simple output using cout

This program uses a cout statement to display text on the computer screen.

The cout statement is shown in Listing 3.

      cout << "Hello World\n";

Listing 3

The cout statement is in the main function, but that typically won't be the case in more complex programs.