[c++] How to repeat a string a variable number of times in C++?