void subMenuTwo()
{
char select;
while (true)
{
// User menu
cout << "Select from the following items:" << endl <<
"H: Go to hfunc" << endl <<
"E: Go to efunc" << endl <<
"X: Exit" << endl;
cin >> select;
switch (select)
{
case'H': hfunc();
break;
case'E': efunc();
break;
case'X': mainMenu();
}
}
}
Essentially, the program opens the main menu, the user chooses an option, then they are taken to a submenu where they have more options like the above. I was wondering whether it'd be possible to make a Menu class to where I can simply declare a new instance of Menu when I need to make a submenu, as opposed to having a mainMenu() and 3 or 4 subMenu() that all basically do the same thing.
Well, you can have functions inside functions, so technically I dont see why you couldnt include a class within a class ? Ive never really worked with classes before......Ill see if i can find something