|
-
May 12th, 2008, 07:43 AM
#2
Re: help in sorting array...
Please use a std::vector< std::vector< std::string > > instead of the old school arrays.
If you use vectors you don't need all those strcpy statements and you don't need to worry about the size of strings. Your code is probably not allocating enough memory in your array and that's why it's crashing.
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
|