#pragma once #include #include #include class TablePrinter { public: TablePrinter(std::ostream* stream, std::initializer_list columnWidths, int columnSpacing = 2); void printRow(std::initializer_list columns) const; private: std::ostream* const stream; const std::vector columnWidths; const int columnSpacing; };