King_Weaver
Gawd
- Joined
- Nov 26, 2006
- Messages
- 620
ok for a project I need to create a menu that displays a list of options and waits for input from the keyboard if the input matches an menu selection then the corresponding method is called. once that method is done it must return to the menu, the menu must keep coming up unless the user presses "q". I dont think the else is right either, it seems to me that it would almost always trigger the else because else would also mean no input at all. Theres got to be a better way to do this
Heres what ive got so far, im not sure what to put in the parameter of the do- while() loop.
Heres what ive got so far, im not sure what to put in the parameter of the do- while() loop.