Skip to content

ZipS1/console-menu

Repository files navigation

Menu for C++ console projects

Using

  1. Include header file in project.
  2. Initialize a std::vectorstd::string> of menu items.
    They will be shown as a menu lines
  3. 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!
  4. Instantiate a ConsoleMenu example and pass both vectors here.
    ConsoleMenu template parameters is function input parameters you specified for function pointers
  5. Call method .run() with parameters you specified.

About

Console menu for C++ CLI apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published