get a line as input in c++ with spaces code example Example: does cin read whitespace? cin does not read white space.