I'm creating this simple word based game that has saves. I put the names of the saves each on a seperate line on a file that the program creates. This following code is supposed to make the user type in the name of the save he wants to load.
cin >> load;
cin.sync(); // This makes sure anything not extracted into load is discarded.
} while (name != load);
Avoid using goto statements to make your code more readable.