how to make a menu program?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • april casio
    New Member
    • Aug 2010
    • 2

    #1

    how to make a menu program?

    how to make a menu program where in you need to enter groceries, t-shirt brands and shoes brands and if you choose groceries,there must have items such as canned goods,household materials and if you choose canned goods the price must appear in the monitor and you will be able to know if that item is discounted or not
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    To create a menu program start with an infinite loop in main().

    Then first thing inside the loop, get a menu choice form the user.

    Test the choice and call the correct function for the choice. When that function returns you are still in the loop to get the next choice.

    One of the choices would be to exit the program. Here you call your exot function. This function does any cleanup that may be necessary and then stops the program. It does not return.

    Comment

    • april casio
      New Member
      • Aug 2010
      • 2

      #3
      thanks for your help...
      but again i dont know how to make a source code of my menu program...im too confused

      Comment

      Working...