
Buffering 35
Table 3.1 Pre-defined C++ Stream or I/O Global Objects
cin
Standard input, usually keyboard, corresponding to stdin in C. It handles input from
input devices usually from keyboard.
cout
Standard output, usually screen, corresponding to stdout in C. It passes data to output
devices such as monitors and printers. Thus, it controls output.
clog
A fully buffered version of cerr (no C equivalent). It controls error messages that are
passed from buffer to the standard error device.
cerr
Standard error output, usually screen, corresponding to stderr in C. It controls the un-
buffered output data. It catches the errors and passes ...