Friday 24 April 2015

Predefined Console Streams

C++ supports four standard streams cin, cout, cerr and clog are automaticallyopened before the function main() is executed, they are closed after main() has completed. These predefined stream objects have the following meaning:

Cin - standard input corresponding to stdin in C.
Cout - standard output corresponding to stdout in C.
Cerr - standard error output corresponding to stderr in C.
Clog - a fully-buffered version of cerr.

No comments:

Post a Comment