diff options
Autocommit at 05.05.2022 @ 13:23
1 files changed, 8 insertions, 0 deletions
| -rw-r--r-- | src/ConsoleInterface/Toolbox.hpp | 8 |
diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/ConsoleInterface/Toolbox.hpp index 1af42e2..67ed762 100644 --- a/src/ConsoleInterface/Toolbox.hpp +++ b/src/ConsoleInterface/Toolbox.hpp @@ -44,4 +44,12 @@ void resetOrderedList(int starter = 1) { orderedListIndex = starter; } +template <typename T> +T inputBox(const char* label) { + print(label); + T temp; + std::cin >> temp; + return temp; +} + #endif |
