Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface
diff options
context:
space:
mode:
1 files changed, 8 insertions, 0 deletions
-rw-r--r--src/ConsoleInterface/Toolbox.hpp8
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