Created
November 16, 2017 19:54
-
-
Save FLYBYME/08b880409172690833471f4f151d43ae to your computer and use it in GitHub Desktop.
menu system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include "sub_menu.h" | |
#include "menu.h" | |
using namespace std; | |
MenuHelper menu; | |
void searchMenuHandler() { | |
cout << "searchMenuHandler" << endl; | |
} | |
int main() { | |
SubMenu* item = menu.addItem("Search"); | |
item->setHandler(&searchMenuHandler); | |
char* title = item->getTitle(); | |
cout << title << endl; | |
item->callHandler(); | |
string y; | |
getline(cin, y); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment