From 45f11f684101c1683251f591a135fe292268b8f7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 13:33:25 +0300 Subject: Autocommit at 05.05.2022 @ 13:33 --- src/ConsoleInterface/Toolbox.hpp | 6 ++++-- src/VenueConsoleUI.cpp | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ConsoleInterface/Toolbox.hpp b/src/ConsoleInterface/Toolbox.hpp index acd400d..b9f57b6 100644 --- a/src/ConsoleInterface/Toolbox.hpp +++ b/src/ConsoleInterface/Toolbox.hpp @@ -1,6 +1,7 @@ #ifndef HEADER_CONSOLEINTERFACE_TOOLBOX #define HEADER_CONSOLEINTERFACE_TOOLBOX +#include "../String/String.h" #include template @@ -35,9 +36,10 @@ void printLine(const T& item) { int orderedListIndex = 1; -void printOrderedListElem(const char* message) { +template +void printOrderedListElem(const T& elem) { std::cout << orderedListIndex << ". "; - printLine(message); + printLine(elem); } void resetOrderedList(int starter = 1) { diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp index 9296dd6..45be474 100644 --- a/src/VenueConsoleUI.cpp +++ b/src/VenueConsoleUI.cpp @@ -7,6 +7,7 @@ Venue v; void command_newEvent() { String name; + inputStrBox(name, 1024, "Enter event name: "); v.es.createEvent(); } -- cgit v1.3.1-26-gb76a