The cout stream is associated with standard output. You can
use the output operator in conjunction with cout to direct a
value to standard output. Successive output operators are
concatenated when applied to cout. The following example prints
out three strings in a row and produces the same result as the
previous example, printing Hello World! to standard output.
/** ** Another Hello World, illustrating concatenation with cout **/ #include <iostream.h> void main() { cout << "Hello " << "World" << "!" << endl; }
Output operators are defined to accept arguments of any of the fundamental data types, as well as pointers, references, and array types. You can also overload the output operator to define output for your own class types.