Reading white space?

My program asks for user input and is in the format of "10 11 12". I want to do something like
cin << userInput
but when I use that, I only get everything prior to the first white space. How can I read the entire line? I've tried using getline(string, maxSize) but that puts the line into an array of char which I don't want.
There's a string version of getline:
http://www.cplusplus.com/reference/string/getline/
getline(cin, userInput)
Topic archived. No new replies allowed.