|Apr 14, 2011, 09:32 PM||#1|
C programming, menu?
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:
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 by CsRookie; Apr 14, 2011 at 09:58 PM.
|Apr 14, 2011, 09:46 PM||#2|
Something like the following pseudo-code:
Initialize program Loop Print menu on screen Read menu choice from keyboard If menu choice is 1 then do view inventory If menu choice is 2 then do add inventory (etc.) If menu choice is 5 then exit loop End loop Cleanup program
|Apr 14, 2011, 09:58 PM||#3|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|'Hue Menu' Controls Philips Hue Lights From the Mac Menu Bar||MacRumors||Mac Blog Discussion||23||May 29, 2014 08:15 PM|
|Mac programming should be more like iOS programming.||moonman239||Mac Programming||13||Feb 17, 2014 01:37 PM|
|Apple Menu (Grey Menu) / Finder Takes Too Long to Load (Last 24h)||ArmCortexA8||OS X Mavericks (10.9)||0||Jul 21, 2013 08:36 AM|
|Some icons missing on Desktop Menu Bar, Safari Menu Bar and Finder Menu Bar||chroniceater||MacBook Air||7||Jan 14, 2013 11:50 AM|
|(null) menu items in iPhoto Share menu||ezhilk||OS X||1||Oct 7, 2012 08:24 AM|
All times are GMT -5. The time now is 07:09 PM.