[   ^ to index...   |   <-- previous   |   next -->   ]

Using output streams

We print to output streams using the << operator:

int i; char b[30]; cout << i; cout << b;

Like >>, the << operator is "aware" of the type that is being output. When given a char array, cout treats the array as a C-style string (a null-terminated array of char)..

About the >> and << operators


Last modified: Wed Jun 28 22:41:53 PDT 2000