C++ IOStreams HandbookThis is the first comprehensive reference work published on IOStreams. The C++ IOSTREAMS HANDBOOK provides C++ programmers with a broad view of the input-output mechanisms associated with the C++ language, as embodied in the IOStreams class library. Teale shows programmers how to use IOStreams, provides reference material for the IOStreams classes, illustrates how to provide input-output facilities for user-defined types and how to extend the IOStreams system. Features
This book will help programmers, both novice or experienced, to expand and manipulate IOStreams and to make more sophisticated use of facilities in their own programs. 0201596415B04062001 |
From inside the book
Results 1-3 of 21
Page 125
... extracted from the input source are transferred as is to the referenced streambuf . Extraction stops only when an EOF condition occurs on the istream or the streambuf . If no characters are extracted from the i stream ( because of an ...
... extracted from the input source are transferred as is to the referenced streambuf . Extraction stops only when an EOF condition occurs on the istream or the streambuf . If no characters are extracted from the i stream ( because of an ...
Page 127
... extracted • An EOF condition is encountered The delimiting character is not extracted . A null terminating character is then stored in the array , even if no characters were extracted . The last one extracts characters and places them ...
... extracted • An EOF condition is encountered The delimiting character is not extracted . A null terminating character is then stored in the array , even if no characters were extracted . The last one extracts characters and places them ...
Page 128
... extracted • length - 1 characters have been extracted • An EOF condition is encountered on the destination streambuf or on the istream The delimiter character is not stored in the array . A null terminator is appended even if no ...
... extracted • length - 1 characters have been extracted • An EOF condition is encountered on the destination streambuf or on the istream The delimiter character is not stored in the array . A null terminator is appended even if no ...
Contents
Introduction | 1 |
IOStreams CookbookSimple Input and Output | 7 |
Why Use IOStreams? | 31 |
Copyright | |
17 other sections not shown
Common terms and phrases
ANSI discussion document argument associated streambuf base class behavior bits buffer area built-in types bytes cerr Chapter class ios const char cout decimal delete derived classes descriptor digits end-of-file endl error example extract field width file_descriptor filebuf floating-point flush follows fstream_common function returns header file hexadecimal implementation include fstream.h input stream inserter functions int io_mode int length int main integer ios object ios::eofbit ios::failbit ios::in ios::out iostream.h IOStreams library IOStreams system manipulators member function mode MS-DOS newline newline characters number of characters octal ostream &operator<<(ostream ostream_withassign position printf public interface put area put pointer putback quick brown fox radix regular expression return EOF seekoff sequence setbuf sgetc specified standard streams static int stdio streambuf streampos string strstream strstreambuf suffix functions transition table translator classes Tuple two's complement unbuffered operation underflow unsigned char user-defined types virtual functions void whitespace