What's does peek do???

What does cons peek function do exactly?

A. Returns a copy of the next input char
B. Reads the next input char
C. Will (typically) not cause cour to print a waiting prompt
D. Advances the buffer position
E. Returns the largest waiting input char

It can be one or more of these.
Have you tried just looking up the method?
http://www.cplusplus.com/reference/istream/istream/peek/
Topic archived. No new replies allowed.