M
Michael
Suppose I have:
#include <vector>
using std::vector;
class C
{
public:
int a,b;
};
int main()
{
vector<C> vecC;
//Populate vecC
how do i now sort according to a or b?? do I pass in a function pointer
to sort(.....)??
}
Regards
Mike
#include <vector>
using std::vector;
class C
{
public:
int a,b;
};
int main()
{
vector<C> vecC;
//Populate vecC
how do i now sort according to a or b?? do I pass in a function pointer
to sort(.....)??
}
Regards
Mike