Cplusplus newbie: How do you make a string hold 2 words?

Mike

Active member
Joined
May 13, 2008
Messages
2,890
Reaction score
0
Points
36
I want to make it so the variable string name; can hold two words
when I do cin << name << endl; it only displays the first name when it pops up on cout
 
Back
Top