Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Java vs C++ speed (IO & Sorting)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Alf P. Steinbach, post: 3494074"] * Razii: No, when I wrote "..." I meant "insert your old code, exactly as it was, here". The statement above ends up adding 50 million chars to a string that's already 50 million chars. Not that it's necessarily a bad way to do it (it has a little overhead but is generally less brittle, i.e. more safe, than indexing code), but then the declaration of cr should leave cr as initially empty: either originally empty string and append, or originally 50 million char string and indexing. Cheers, & hth., - Alf [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Java vs C++ speed (IO & Sorting)
Top