diff options
Autocommit at 05.05.2022 @ 13:28
1 files changed, 8 insertions, 5 deletions
| -rw-r--r-- | src/ConsoleInterface/Toolbox.hpp | 13 |
diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/ConsoleInterface/Toolbox.hpp index 67ed762..acd400d 100644 --- a/src/ConsoleInterface/Toolbox.hpp +++ b/src/ConsoleInterface/Toolbox.hpp @@ -45,11 +45,14 @@ void resetOrderedList(int starter = 1) { } template <typename T> -T inputBox(const char* label) { - print(label); - T temp; - std::cin >> temp; - return temp; +void inputBox(T* output, const char* label) { + std::cout << "+ " << label; + std::cin >> output; +} + +void inputStrBox(char* output, unsigned maxLength, const char* label) { + std::cout << "+ " << label; + std::cin.getline(output, maxLength); } #endif |
