repeat a character x amount of times in cpp code example Example: repeat character n times c++ auto five_repeated_dots = std::string(5, '.');