How can I output data to the console in a table in C++? There\'s a question for this in C#, but I need it in C++.
This, except in C++: How To: Best way to draw table
Check the column value length and also keep the length of value in mind to format.
printf(" %-4s| %-10s| %-5s|\n", "ID", "NAME", "AGE");
See how MySQL shell interface was designed, it will give you a good idea.