From 357c8636d6b032dca33a2c8530aaa365a277dacf Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 13:28:23 +0300 Subject: Autocommit at 05.05.2022 @ 13:28 --- src/ConsoleInterface/Toolbox.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/ConsoleInterface') 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 -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 -- cgit v1.3.1-23-gd82d