myData class has int id, char* name;
And I push_back some myData class like this.
myData *a1 = new MyData(0, "a1");
myData *a2 = new MyData(1, "a2");
then, I want to arrange them by id like,
Initailly, I tried to use qsort or other sort algorithm provided with C++.
But I don't know how to use it with those class type.
How to do that??
Can't see your code...can't offer suggestion
solved it!! Thanks All!!!