+ 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

14th Mar 2020, 8:19 PM
Olawale Eniola
Olawale Eniola - avatar
5 Antworten
+ 2
In comparison to what? And for what purpose?
14th Mar 2020, 8:46 PM
HonFu
HonFu - avatar
+ 2
Have a look at std::string
14th Mar 2020, 8:49 PM
Bilbo Baggins
Bilbo Baggins - avatar
+ 2
It handles strings better than how plain C does.
15th Mar 2020, 1:30 PM
Sonic
Sonic - avatar
+ 1
In comparison with python...for multiplication of strings especially while in a for loop
14th Mar 2020, 8:52 PM
Olawale Eniola
Olawale Eniola - avatar
+ 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/
14th Mar 2020, 8:55 PM
HonFu
HonFu - avatar