Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- std::string repeat_str(size_t repeat, const std::string& str) {
- std::string a;
- for(int i = 0;i<repeat;i++){
- a+=str;
- }
- return a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement