how to make a program that has a menu and once you choose a certain topic then when your through with that how will you return to the previous menu that is under a certain condition like in a do while loop ?? can someoNe help me??

Recommended Answers

All 4 Replies

I think you mean nested menus.

void menu2()
{
    // do some menu stuff
}

void menu1()
{
   // display a menu

   switch (selection)
   {
           case 1: menu2(); break;
           // other choices follow
   }
}

oH! thanks maN! that really helpS!!! :D!!

oH! thanks maN! that really helpS!!! :D!!

Capital letters go at the start of a sentence, not the end. :icon_lol:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.