|
-
October 12th, 2003, 04:38 AM
#1
which operation is more efficient?
I have a long string (char *) and I need to parse
I'm going to do the parsing on a std:string
should I do
string sTmp = myCharString;
//my parsing (substr mostly)
or for each parsing operation (have at least 10 of them)
xxx =((string)myCharString).substr(0,4));
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|