cin.peek() and cin.putback()

Printable View