peek return the next character from input without extracting from the
input stream. For example, you want to read input up to the first newline or
period.
gcount() method returns the number of characters read by the last
unfromatted extraction method. That means character read by the a get(),
getline(), ignore(), or read(), but not extraction operator.
putback() function inserts a character back in the input buffer.