From 60cbf65928ed2684220388badbb2de23eadd22d9 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 13:23:21 +0300 Subject: Autocommit at 05.05.2022 @ 13:23 --- src/ConsoleInterface/Toolbox.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ConsoleInterface') 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 +T inputBox(const char* label) { + print(label); + T temp; + std::cin >> temp; + return temp; +} + #endif -- cgit v1.3.1-23-gd82d