|
-
March 30th, 1999, 10:55 PM
#4
Re: Sort a CStringArray
my advise: use Standard C++ template library.
it would be as simple as
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
vector<string> myarray;
myarray.push_back( "some string" ;
myarray.push_back( "some other string" ;
.
.
.
sort(myarray.begin(),myarray.end());
viola. you got a sorted array. with STL containers/algoritms you can do all sort of neat things.
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
|