C++

Objectives :

 

FAQ: 1

Microsoft's Visual C++  has two versions of the iostream library, supporint input and output from a file. The Visual Studio 6.0 , distinguished standard C/C++  standard streaming and a  newer library.

This separation was obvious,   "cin, cout, cerr, and clog are inconsistent with the Windows graphical user interface" (Ref: 1, 2).
 

FAQ: 2

Output Stream: contains three classes, namely, ostream, ofstream, and ostrstream. The class ostream support the following predefined objects.

  • cout: standard output
  • cerr: standard error with limited buffer
  • clog: similar to cerr but with full buffering

FAQ: 3

Some Streams:

  12.1.Text file read( 10 )  12.12.ostream_iterator( 4 ) 
  12.2.Text file write( 11 )  12.13.istream( 2 ) 
  12.3.binary file( 10 )  12.14.istream_iterator( 4 ) 
  12.4.class save load( 7 )  12.15.istream exceptions( 1 ) 
  12.5.file open mode( 6 )  12.16.istreambuf_iterator( 1 ) 
  12.6.file pointer( 12 )  12.17.istrstream( 5 ) 
  12.7.file utilities( 8 )  12.18.ostrstream( 7 ) 
  12.8.fstream( 4 )  12.19.streambuf( 2 ) 
  12.9.ifstream( 9 )  12.20.stringstream( 4 ) 
  12.10.ofstream( 10 )  12.21.strstream( 2 ) 
  12.11.ostream( 7 )  12.22.file IO Exception( 5 ) 

 

     
ostream :-inherits ios and ios_base-

Member function of ostream inherited from ios
good, eof, fai l,bad,operator, clear , fill and so on