26 Nov 2019

  • November 26, 2019
  • Amitraj
C++ Stream classes Structure

-> The C++ I/O system contains a hierarchy of classes that are used to define various streams to deal with both the console and disk files, These classes are called Stream classes.

-> Stream classes in C++ are used to input and output operations on files and io devices. These classes have specific features and to handle input and output of the program.

-> The iostream.h library holds all the stream classes in the C++ programming language.






Classes of the iostream library:

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 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 in c++ programming language. These output stream objects are used to write data as a sequence of characters on the screen. cout and puts handle the out streams in c++ programming language.


Translate

Popular Posts