C Programming on the IBM PC (C Programmers Reference Guide Series)

peek

#include <iostream>int peek();

The peek( ) function is a member of istream.

The peek( ) function returns the next character in the stream or EOF if the end of the file is encountered. It does not, under any circumstances, remove the character from the stream.

A related function is get( ).

Категории