How would one go about creating a menu for a c program? The menu would allow the user to select where they want to go in the program. For example:
1)View Inventory
2)Add Inventory
3)Remove Inventory
4)Save
5)Exit
Something along those lines and the user would input 1-5 and then it would take them to the next part of the program. How would a menu driven program work? I tried the search but no luck, any links to examples or simple explanation would be greatly appreciated.
1)View Inventory
2)Add Inventory
3)Remove Inventory
4)Save
5)Exit
Something along those lines and the user would input 1-5 and then it would take them to the next part of the program. How would a menu driven program work? I tried the search but no luck, any links to examples or simple explanation would be greatly appreciated.

Last edited: