int main() { ConsoleMenu menu; menu.setTytul("Menu glowne"); menu.AddOption("Opcja 1", funkcja1); ConsoleMenu Podmenu; Podmenu.setTytul("Podmenu"); Podmenu.AddOption("Opcja 1", funkcja1); Podmenu.AddOption("Wyjscie", funkcjaExit); //menu.AddSubMenu("podmenu", Podmenu); menu.AddSubMenu("podmenu", &Podmenu); menu.AddOption("wyjscie", funkcjaExit); menu.Show(); //system("pause>nul"); return 0; }