In python, the following instruction: print 'a'*5 would output aaaaa. How would one write something similar in C++ in conjunction with std::ostreams in order to avoid a for construct?
In python, the following instruction: print ‘a’*5 would output aaaaa . How would one
Share
The obvious way would be with
fill_n:Another possibility would be be to just construct a string: