The first thing that comes to my mind is to do a bunch of \\t\'s, but that would cause words to be misaligned if any word is longer than any other word by a few characters.<
Use std::setw from
e.g.
using std::cout; using std::setw; cout << setw(10) << "This" << setw(10) << "is" << setw(10) << "a" << setw(10) << "test" << '\n';
Output:
This is a test