SyntaxFix
Write A Post
Hire A Developer
Questions
I just happened to look for something similar and came up with this:
std::cout << std::setfill(' ') << std::setw(n) << ' ';