theater seating issue

....
Last edited on
You're prompting for a choice twice: once inside displayMenu() and again at line 37 after calling displayMenu. Change lines 35-37 to:
int choice = displayMenu();
This will copy the return value from displayMenu() into the local variable "choice".
In displayMenu you ask for input, which you then return. In main, you discard that input and silently gather more.
I'm still confused.. I've actually already tried changing this but only allows me to pick one option (and even then it doesn't display the correct answer) and then it returns to asking me to pick a choice 1-8, and when i do, it stops running again..

ok i guess what i'm lost with is how do get the program to not return to display menu but actually execute whatever i pick.

like after it displays menu options and the user picks 2 for example, how do i get the program to go back to case and pick from there? sorry I'm really lost
Last edited on
Topic archived. No new replies allowed.