Anonymous user
Repeat a string: Difference between revisions
→{{header|C++}}
Line 43:
#include <iostream>
std::string repeat( const std::string &word, int times ) {
std::string result ;
for ( int a = 0 ; a < times ; a++ )
|
Line 43:
#include <iostream>
std::string repeat( const std::string &word, int times ) {
std::string result ;
for ( int a = 0 ; a < times ; a++ )
|