struct person{
string name;
int score;
int id;
// 用const传入一个变量 与当前结构体属性进行比较
bool operator< (const person& t)const {
return score< t.score;
}
bool operator> (const person& t)const {
return score > t.score;
}
};