Found in iostream.h, this C++ command is used to output stuff to the screen.

Usage:
cout << "Hello, World!";

To output a variable you do
cout << varname;
and to do a variable and string together you do
cout << "Hello, World! My favourite number is " << varname << ". I also like cheese.";

This, of course, assumes that you like cheese (surely you do!) and that varname contains your favourite number.

Cout (?), n. [F., fr. L. gustus taste. See Gusto.]

Taste; relish.

 

© Webster 1913.

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.