The characters 0x09 through 0x0D are whitespace, and as such are ignored by operator>>
when extracting values. Use one of the std::cin.get()
overloads if you want an unformatted character read (if you're programming on windows, carriage returns (0x0D) will still be ignored as part of a line end unless you reopen the standard input stream in binary mode).
You can also use the std::noskipws
manipulator to disable leading whitespace skipping for formatted input functions.