I'm practicing writing some codes for a video game. I'm starting off having the player have an option, but the "Choose a Class" part doesn't work. Any ideas?
I see that name is a double. Are you entering a number as the name, or are you trying to enter letters? If you want the name to be letters, then you should make name of type string; not double.
The only issue I see with the code you have supplied is that you are using the string data type without #include <string>. Outside of that I would recommend that you use a switch statement instead of a series of if statements. Please see the rework below.