SyntaxFix
Write A Post
Hire A Developer
Questions
Just use std::string:
std::string
std::cout << std::string( n, ' ' );
In many cases, however, depending on what comes next, is may be simpler to just add n to the parameter to an std::setw.
n
std::setw