Can I use STL qsort() for sorting structure?
I have created an array of structure
And I need to sort this array of structure in ascending transnum.Code:struct structtid { int tid; //transaction id list int *tidptr; // pointer to the transaction int transnum; //size of each transaction };
Is it possible to do this?



LinkBack URL
About LinkBacks


