input string in c++ with spaces and ints code example Example: does cin read whitespace? cin does not read white space.