Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>iostream formatted i/o stream</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 iostream             Formatted I/O Stream


            The iostream stream is for non-file formatted input and
    output. It is made up of a combination of istream and ostream
    (cin, cout, cerr, and clog are all derived classes of istream and
    ostream). The important member fucntions of iostream are:

 istream &get(ch);    Get one char from stream associated with object
 char &ch;              Location to put character at

 ostream &put(ch);    Put one char to stream associated with object
 unsigned char *buf;    Data buffer
 int num;               Number of bytes to read

 istream &read(buf, num);     Read num bytes from this object's stream
 unsigned char *buf;    Data buffer
 int num;               Number of bytes to read

 ostream &write(buf, num);    Write num bytes to this object's stream
 unsigned char *buf;    Data buffer
 int num;               Number of bytes to write

 int eof();      Return nonzero value when the end of the file is reached.

 istream &seekg(offset, origin);      Move data get pointer
 streamoff offset;      Type defined in IOSTREAM.H
 seek_dir origin;       Seek_dir is an enumeration; possible values:
                           ios::beg  =  Beginning
                           ios::cur  =  Current location
                           ios::end  =  End

 ostream &seekp(offset, origin);      Move data put pointer
 streamoff offset;      Type defined in IOSTREAM.H
 seek_dir origin;       Seek_dir is an enumeration; possible values:
                           ios::beg  =  Beginning
                           ios::cur  =  Current location
                           ios::end  =  End



See Also: ios istream ostream

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson