So my code is pretty basic, just simply choosing a difficulty level in a game, however even that I can't even manage to get right, my problem is occurring with the last few lines of code, I can't seem to make it loop properly if the char entered isnt "acceptable", does anyone have any idea what i'm doing wrong?
*edit*
I knew char could only equal 1 letter, but I thought you could use those || operators.
tbh if that isn't the case, I have no idea how to code it, could you possibly give me an example or change the above to an acceptable format?
I am most likely missing something here, but surely the string "e1m2h3i4" would only be valid if the user entered that?
The rest of the code I'm afraid I don't understand, sorry, this must be frustrating for you but i really dont get it.
How can i make it so that e,1,m,2,h,3,i,4 are all considered acceptable entries and anything else not, without typing them out 1 by 1?
yes I understand that, but that loop will repeat until a difficulty is chosen.
What I am trying to get it to do, is loop if it doesn't select e,1,m,2,h,3,i,4 etc. I cant' manage it at the moment in switches