Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C strings vs. C++ strings


ghost's Avatar
0 0

Is it more efficient to change a C style string into a C++ string and searching it using substr()? Or is brute-forcing a C style string with a for() statement better? I'm looking for speed, and small amounts of memory usage..


ghost's Avatar
0 0

Iterating through the C-style string would be faster than doing a conversion and using a method to iterate through the string.