I am using a switch statement for a menu driven program. I am having trouble though.
Lets say the menu has three choices,
1) add inventory
2) remove inventory
3)view inventory
Im not having any trouble jumping to the different functions, however, how do I get back to my menu in int main?
If i add inventory and then want to go back to the menu, how do I get there? What type of statement or loop do I need?
Thanks in advance
Lets say the menu has three choices,
1) add inventory
2) remove inventory
3)view inventory
Im not having any trouble jumping to the different functions, however, how do I get back to my menu in int main?
If i add inventory and then want to go back to the menu, how do I get there? What type of statement or loop do I need?
Thanks in advance

Last edited: