Coldeyes Posted March 29, 2008 Share Posted March 29, 2008 Can someone help me with this? I have to make a dynamic menu with submenu's in C++. All help is greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/98491-how-can-i-make-a-dynamic-menu-in-c/ Share on other sites More sharing options...
keeB Posted March 29, 2008 Share Posted March 29, 2008 #include <iostream> using namespace std; int main() { int lol = 0; cout<<"1. Menu Item" <<endl; cout<<"2. Menu Item 2" <<endl; cin>>lol; switch (lol) { case 1: //show some other menu? }; return 0; } Didn't try to compile this, so take it as an example. Quote Link to comment https://forums.phpfreaks.com/topic/98491-how-can-i-make-a-dynamic-menu-in-c/#findComment-504049 Share on other sites More sharing options...
Coldeyes Posted March 29, 2008 Author Share Posted March 29, 2008 Thanks for the example keeB but I forgot to mention that some parts of the menu are private and other public. That's actually my problem. Any idea's? Quote Link to comment https://forums.phpfreaks.com/topic/98491-how-can-i-make-a-dynamic-menu-in-c/#findComment-504050 Share on other sites More sharing options...
keeB Posted March 29, 2008 Share Posted March 29, 2008 what the hell are you talking about? Quote Link to comment https://forums.phpfreaks.com/topic/98491-how-can-i-make-a-dynamic-menu-in-c/#findComment-504057 Share on other sites More sharing options...
Coldeyes Posted March 30, 2008 Author Share Posted March 30, 2008 Well I am trying to create a class in C++ witch represents a menu. Some parts of the menu are public and others private. Quote Link to comment https://forums.phpfreaks.com/topic/98491-how-can-i-make-a-dynamic-menu-in-c/#findComment-505152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.