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.
cout << "Enter the class you would like to load" << endl;
string Classname;
cin >> Classname;
ifstream myfile ((Classname)+".sav", ios::in);
if(myfile.is_open())
{
myfile >> Player.Name;
myfile >> Example;
}
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.