What's does peek do???

Sep 22, 2015 at 4:04pm
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.
Sep 22, 2015 at 4:32pm
Have you tried just looking up the method?
http://www.cplusplus.com/reference/istream/istream/peek/
Topic archived. No new replies allowed.