From ebe5e280c9fc35b4937804ad9fd0bec600da4158 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 6 May 2022 10:26:29 +0300 Subject: Autocommit at 06.05.2022 @ 10:26 --- src/ConsoleInterface/Toolbox.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/ConsoleInterface/Toolbox.cpp') diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp index 9d33783..d534337 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/ConsoleInterface/Toolbox.cpp @@ -42,25 +42,25 @@ void __printTableColumnHeader(unsigned start, unsigned count) { __printTableHeaderNumber(start++); std::cout << ":" << std::endl; - for (unsigned i = 0; i < count; i++) - std::cout << "...."; - std::cout << "." << std::endl; + for (unsigned i = 0; i <= count; i++) + std::cout << "++++"; + std::cout << "+" << std::endl; } void __printTableLine(unsigned columns) { - std::cout << ":...:"; + std::cout << "++++"; for (unsigned i = 0; i < columns; i++) - std::cout << "----"; - std::cout << "-" << std::endl; + std::cout << " "; + std::cout << "+" << std::endl; } void table(unsigned startNumber, unsigned columns, const char* items) { __printTableColumnHeader(startNumber, columns); __printTableHeaderNumber(startNumber); - for (unsigned i = 0, colInd = 1, rowInd = 0; items[i] != '\0'; i++, (++colInd) %= (columns + 1)) { + for (unsigned i = 0, colInd = 1, rowInd = 1; items[i] != '\0'; i++, (++colInd) %= (columns + 1)) { if (colInd == 0) { - std::cout << "|" << std::endl; + std::cout << ":" << std::endl; __printTableLine(columns); __printTableHeaderNumber((rowInd++) + startNumber); } -- cgit v1.3.1-23-gd82d