diff options
| author | Aotrix <[email protected]> | 2025-06-29 02:16:13 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-06-29 02:16:13 +0200 |
| commit | 4167f92f3d36b7384c4c5f8bf7501bba52e91a0c (patch) | |
| tree | 7cbccb75c24ddb1d256a1e3b78d05c0ca7dcbd7c /include/startMenu.hpp | |
| parent | a61305a4f779d72ebf01bf1c4b0d4c9244d23236 (diff) | |
refactoring and added start menu
Diffstat (limited to 'include/startMenu.hpp')
| -rw-r--r-- | include/startMenu.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/startMenu.hpp b/include/startMenu.hpp new file mode 100644 index 0000000..0168424 --- /dev/null +++ b/include/startMenu.hpp @@ -0,0 +1,16 @@ +#pragma once +#include <format> +#include <iostream> + +template <typename... FunctionType> +void launchFunction(FunctionType... aFunctions) { + std::cout << "MENU: SELECT THE FUNCTION\n" + << "=========================" << std::endl; + for (size_t aFunctionIndex = 0; aFunctionIndex < sizeof...(aFunctions); + aFunctionIndex++) { + std::cout << std::format("{}) {}", aFunctionIndex + 1, + "currentFunctionName") // FIXME: replace this + << std::endl; + } + std::cout << "=========================" << std::endl; +} |
