- Include header file in project.
- Initialize a std::vectorstd::string> of menu items.
They will be shown as a menu lines - Initialize a std::vector<> of function pointers.
- It contains function pointers that will be running when you select menu item with same index as func pointer
- Don't forget to specify input parameters for function pointers when initializiing vector
Vector sizes should be equal! - Instantiate a ConsoleMenu example and pass both vectors here.
ConsoleMenu template parameters is function input parameters you specified for function pointers - Call method .run() with parameters you specified.
-
Notifications
You must be signed in to change notification settings - Fork 0
ZipS1/console-menu
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Console menu for C++ CLI apps
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published