用sort给结构体排序

int comp(const student &a,const student &b)
{
    return a.score>b.score;
}

 

原文地址:https://www.cnblogs.com/lizinuo/p/9569829.html