|
-
March 30th, 2004, 01:02 PM
#5
You can just skip the resize and use the push_back member-function of the vector class to add each string you create in your app to the end of the vector.
Note that if you add thousands of strings, this might be slow since a lot of reallocation can occur. In that case the std: equeue or std::list containers would be a better choice.
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
|