#ifndef HEADER_CONSOLEINTERFACE_TOOLBOX #define HEADER_CONSOLEINTERFACE_TOOLBOX #include "../String/String.h" #include template void read(T* storage) { std::cin >> storage; } template void read(T& storage) { std::cin >> storage; } template void print(const T* item) { std::cout << item; } template void printLine(const T* item) { std::cout << item << std::endl; } template void print(const T& item) { std::cout << item; } template void printLine(const T& item) { std::cout << item << std::endl; } int orderedListIndex = 1; template void printOrderedListElem(const T& elem) { std::cout << orderedListIndex << ". "; printLine(elem); } void resetOrderedList(int starter = 1) { orderedListIndex = starter; } template 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