tabulate is a project created by Pranav that makes it easy to generate beautifully formatted tables for command lines. I encourage you to check out the project to see its capabilities. The library is header only, making it easy to include in any poject. The project also has support for exporting to Markdown formatted tables as well as Latex. I was fortunate enough to have my PR to add Latex exporting accepted to this fantastic library.