How to sort vector using custom comparator in c++ ? |How to sort list of object
5 arun 8 28 harshit 10 30 surya 7 26 satyam 27 6 arun 1 28
there are 5 student and you have give there name ,scolarnumber and marks respectively. student having maximum marks at the top and if two students are having same marks then the student having lexicographically smaller name comes first , if both name and marks of the student collide then student having smaller scholar number comes first.
also read-Tower of Hanoi puzzle solution using recursion complete code | total steps and print total steps with code