I'm trying to read a sentence using cin >> but it won't read past spaces entered by the user.
eg.
cout << "Enter Name";
cin >> name;
When user enters Joe Bloggs only Joe is stored in name.
How can i get round this?
|
Results 1 to 2 of 2
Thread: Reading past spacesThreaded View
|
Click Here to Expand Forum to Full Width |