This question already has an answer here:
class student{
int marks;
string name;
};
I have to find the topper student, by sorting based on their marks and name (in lexicographical order if they have same marks), in c++. Please suggest me a method for it. Can priority queue be implemented for the same? Thanks in advance for helping.
Aucun commentaire:
Enregistrer un commentaire