Thread: Only first name
View Single Post
  #1 (permalink)  
Old 11-08-2006, 07:27 PM
Ronin Ronin is offline
Programming Professional
 
Join Date: Apr 2006
Posts: 299
Rep Power: 11
Ronin is on a distinguished road
Default Only first name

I use this:

Code:
string name;
cin >> name;
but when the user enters "Jane Doe" the name string only contains "Jane". How can I fix this?
Reply With Quote

Sponsored Links