Home > SparkCharts > Cs > C++ > Basic Stream Objects

C++


 
 

Basic Stream Objects

The standard stream objects are all opened automatically and provide basic input and output features for C++ programs. They are manipulated using the stream insertion ( << ) and extraction ( >>) operators, depending on whether it is an input stream or an output stream.

 

cin >> a;

 

cin - Console Input Stream

 

cout << “Here”;

 

cout - Console Output Stream

 

cerr << “Error Found”;

 

cerr - Error Output Stream

 

clog << “Error Found”;

 

clog - Standard Log Stream