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>istream formatted input stream</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 istream              Formatted Input Stream


            The istream stream is used for non-file formatted input.
    The cin class is derived from istream. The important member
    functions of istream include:

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

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

 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

See Also: iostream ostream

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