int comp(const student &a,const student &b) { return a.score>b.score; } 转载于:https://www.cnblogs.com/lizinuo/p/9569829.html