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.

Related Posts:

  • Inline function in C++ *Inline - function:-  To Eliminate the cost of calls to small functions, c++ proposes a new feature called Inline Function.             An inline function is a function that is expa… Read More
  • Calculate area using class ... // c++ program to calculate area using class              By Amit raj purohit http://codevidyalay.blogspot.com #include<iostream> using namespace std; class  shape { pr… Read More
  • // c++ program to check given no. is odd or even using class // c++  program to check given no. is odd or even using class    By Amit raj purohit http://codevidyalay.blogspot.com #include<iostream> using namespace  std; class number { private: … Read More
  • C++ Features Cpp Features C++ is object oriented programming language. It provides a lot of features that are given below. 1. Mid-level programming language 2. Structured programming language 3. Rich Library 4. Simple 5. Machine Indep… Read More
  • Age using class   // cpp program to display age using class          By Amit purohit http://codevidyalay.blogspot.com #include<iostream> using namespace std; class person { char name[10]; int a… Read More

Translate

Popular Posts