Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ string of repeated characters

/*
The first argument states how many times
The second argument the CHAR you want to repeat. No strings allowed
*/
std::string(5, '.') + "yourString"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #repeated #characters
ADD COMMENT
Topic
Name
6+5 =