Use getline to handle it:
getline(cin, variableGoesHere);
But remember, cin leaves a newline in the input buffer, so if you use cin calls before this (not necessarily in this case), you'll have to call cin.ignore to clear the input buffer.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339