从MSDN上拿下关于IO Stream类的操作说明,方便以后使用:
class basic_ios:
| Indicates a loss of integrity of the stream buffer. | |
| Clears all error flags. | |
| Copies flags from one stream to another. | |
| Indicates if the end of a stream has been reached. | |
| Indicates which exceptions will be thrown by the stream. | |
| Indicates failure to extract a valid field from a stream. | |
| Specifies or returns the character that will be used when the text is not as wide as the stream. | |
| Indicates the stream is in good condition. | |
| Changes the locale. | |
| Called by basic_ios constructors. | |
| Moves all values, except the pointer to the stream buffer, from the parameter to the current object. | |
| Finds the equivalent char to a given char_type. | |
| Routes stream to specified buffer. | |
| Reads the state of bits for flags. | |
| Assigns a stream buffer to be the read buffer for this stream object. | |
| Sets additional flags. | |
| Exchanges the values in this basic_ios object for those of another basic_ios object. The pointers to the stream buffers are not swapped. | |
| Ensures that one stream is processed before another stream. | |
| Finds the equivalent char_type to a given char. |
class istream
| Returns the number of characters read during the last unformatted input. | |
| Reads one or more characters from the input stream. | |
| Reads a line from the input stream. | |
| Causes a number of elements to be skipped from the current read position. | |
| Returns the next character to be read. | |
| Puts a specified character into the stream. | |
| Reads a specified number of characters from the stream and stores them in an array. | |
| Read from buffer only. | |
| Moves the read position in a stream. | |
| The nested class describes an object whose declaration structures the formatted input functions and the unformatted input functions. | |
| Exchanges this basic_istream object for the provided basic_istream object parameter. | |
| Synchronizes the input device associated with the stream with the stream's buffer. | |
| Reports the current read position in the stream. | |
| Puts the most recently read character back into the stream. |
class ostream
| Terminates a line and flushes the buffer. | |
| Terminates a string. | |
| Flushes the buffer. | |
| Exchanges the values of the left basic_ostream object parameter for those of the right basic_ostream object parameter. |
292

被折叠的 条评论
为什么被折叠?



