Switch menu help

I'm struggling with a few errors on my switch menu. Whenever the user inputs valid numbers it doesn't break. I put breaks on each of my cases and i can't get it to return. How can i make my program break and return to the selection menu when the user inputs valid numbers?



Last edited on
I put breaks on each of my cases


No breaks on cases 2 and 3

More importantly, you never change the selection. You should get a new selection after processing each one. For example, maybe add a function to update the selection and call the function just before the break in each case. It's a crude solution but illustrates the problem.
Topic archived. No new replies allowed.