cin.peek() c++ code example Example: cin.peek() c++ cin.peek() : Returns the next character in the input sequence.