Hi my question is when I run the program it is asking what the score was for a student and after each score it asks 'more?'and you have to type 'y' or 'n' to continue. Well whatever I press it doesn't stop whether its 'n' or 'm'. My other question is how do I make the program quit if I press anything else other than a number when its asking for a score?
First thing first,move your fuctions outta the main() function.You might wanna prompt the user to press "this" to exit,then follow it by a simple "return" statement e.g.
1 2 3 4
case 1:
return;
break;
//honestly i dont know how you want it to be,not necessarily a switch structure,a single if check might do you well.