| bobthedruid (3) | |||||||
|
Ok guys I'm having a loading issue... I'm making a Text Based RPG and i want people to have 2 worded names and or town names this will help with my loading item names too. Declaring Player Name
Say my Input was Steve Smith Saving...
Now inside of that saved file it would say Steve Smith Loading...
Now when i want Steve Smith to be loaded to Player.Name it hits the whitespace and stops so Player.Name = Steve and Example = Smith and it messes up all the other variables in my game I Apologize for any mess ups with the code first post. | |||||||
|
|
|||||||
| Chervil (1206) | |
|
You should use getline for your input instead. http://www.cplusplus.com/reference/string/getline/ | |
|
Last edited on
|
|
| bobthedruid (3) | |||
Didn't I? Player.Name is a string for more detail | |||
|
Last edited on
|
|||