Streams classes:
In C++, Stream classes are used to perform input
and output operations on files and “io” devices. Stream refers to the stream of
characters that are transferred between the program thread and i/o. The iostream.h library holds all the
stream classes.
Classes of the iostream library are as follows.
ios class − This class is the base class for
all stream classes. The streams can be input or output streams. This class
defines members that are independent of how the templates of the class are
defined.
istream Class − The istream class handles
the input stream in the c++ programming language. These input stream objects
are used to read and interpret the input as a sequence of characters. The cin
handles the input.
ostream class − The ostream class handles
the output stream. These output stream objects are used to write data as a
sequence of characters on the screen. The cout handle the out streams in c++
programming language.