Sunday, June 29

FEATURES OF IOSTREAM.H


It is well known fact that C++ is an Object Oriented Programming Language..... In order to handle the various object oriented features of a program , it is essential to have a robust input and output facilities...... Most of the object oriented programs handle three types of items :

Message passing, objects and optional parameters with the message from the outside world....

C++ provides a new way to perform the input and output operations called iostream.h method...

The standard header file input and output stream (iostream.h) contains a set of small and specific general purpose functions for handling input and output data... The I/O stream is a sequence of following characters written for the screen display or read from the keyboard... The standard operators used are 'cin' for input and 'cout' for output.....

(i) Ios.h >> The 'ios' correspond to input and output streams .... There are three types of streams:

(1)>> Istream : have input functions to read a stream of characters from the keyboard...

(2)>>Ostream : have output functions to write a character onto the screen....

(3)>> IOstream : It generally supports both of the above files...

Generally these all the streams are derived from a base class called streambuf class..... This class acts as a buffer for other classes by holding the characters for input and output....

That were the features of IOSTREAM.H .... In my next post we will discuss "cin" and "cout" operators till then its good bye from me.......

0 comments:

Followers

Archive

 

Money ,Entertainment and Education. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com