Streams and Buffers:
The input and out streams in C++ works like an envelope
containing many heterogeneous classes . Most important fact of C++
streams is that, all the input and output are handled as a stream of
The objects like cin or cout are maneuvered by >> or <<
operations, respectively. The input operation with << operator
basically inserts data from keyboard to an input stream; and the
output operator ">>" load the data in the from of an output stream.
In the codes we use the syntaxes as shown in the following lines.
- Input Operation : char ch1; cin.getline(ch1, 200);
- Output operation : cout<< "\n Hello World";
The object cout can further be used with many operations as shown