In python, the following instruction: print \'a\'*5 would output aaaaa. How would one write something similar in C++ in conjunction with std:
print \'a\'*5
aaaaa
std:
Use some tricky way: os << setw(n) << setfill(c) << ""; Where n is number of char c to write
os << setw(n) << setfill(c) << "";