+ 1
I am still learning c++ and I just want to know how well c++ handles string manipulation.
In comparison with python...for multiplication of strings especially while in a for loop
5 Antworten
+ 2
In comparison to what? And for what purpose?
+ 2
Have a look at std::string
+ 2
It handles strings better than how plain C does.
+ 1
In comparison with python...for multiplication of strings especially while in a for loop
+ 1
I have just looked over the method list of type string.
I didn't see a 'repeat' method or something like that, so to me it looks like you'll append the string to itself in a loop.
http://www.cplusplus.com/reference/string/string/