PDA

View Full Version : what is the function of ostream in c++ 2011



saneha
05-02-2011, 05:06 PM
what is the function of ostream

Vuhelper
05-02-2011, 05:06 PM
ostream objects are stream objects used to write and format output as sequences of characters. Specific members are provided to perform these output operations, which can be divided in two main groups:
Formatted output
These member functions interpret and format the data to be written as sequences of characters. These type of operation is performed using member and global functions that overload the insertion operator.
Unformatted output
Most of the other member functions of the ostream class are used to perform unformatted output operations, i.e. output operations that write the data as it is, with no formatting adaptations. These member functions can write a determined number of characters to the output character sequence and manipulate the put pointer