C Plus Plus cout

From GMpedia.org Wiki

Jump to: navigation, search

daralbasr

The COUT command as shown in a C++ Command Console Window.
The COUT command as shown in a C++ Command Console Window.
cout is a C++ command that outputs text. It could be used after using the #include command to include iostream, which initializes the input and output.

"cout" stands for C Output, meaning it outputs text.

[edit] Syntax

std::cout << "Hello world!\n";

Since many cout commands may be used, using "std::" may be tiring, so the using statement might be handy.

[edit] See Also

Personal tools