Sort Class object
Code: #include<iostream> #include<algorithm> using namespace std; class Candidates{ string name; int age; double cgpa; public: Candidates(){ } Candidates(string name,int age,double cgpa){ this->name = name; this->age = age; this->cgpa = cgpa; } void print(){ cout<<"Name : "<<name<<'\t'; cout<<"Age : "<<age<<'\t'<<"CGPA : "<<cgpa<<endl; } bool operator<(const Candidates ca)const{ if(cgpa>ca.cgpa){//increasing order CGPA return true; }else if(cgpa==ca.cgpa){ if(age<ca.age){//decreasing or...