function is printing every string 2 times in c++ code example Example: repeat character n times c++ auto five_repeated_dots = std::string(5, '.');