This is what I have so far what am I doing wrong.
Code:
std::sort(myElections->at(i)->myCandidates->begin(), myElections->at(i)->myCandidates->end(), Election::Candidate::operator ());
for this data struct
Code:
struct Election{
struct Candidate{
vector<int*>* myPrecincts;
string* myName;
int* myTotalNumberOfVotes;
bool operator () (const Election::Candidate& lhs , const Election::Candidate& rhs){
return lhs.myTotalNumberOfVotes < rhs.myTotalNumberOfVotes;
}
};
vector<Election::Candidate*>* myCandidates;