zeng_dx @ 2023-01-23 20:50:16
bool cmp(int i,int j)
{
if(a[i].tot!=a[j].tot)
return a[i].tot>a[j].tot;
else
if(a[i].chi!=a[j].chi)
return a[i].chi>a[j].chi;
else
return a[i].num<a[j].num;
}
编译错误康不懂
感觉自己很垃圾
by jhdrgfj @ 2023-01-23 20:55:16
bool cmp(*结构体名* i,*结构体名* j)
{
if(i.tot!=j.tot)
return i.tot>j.tot;
else
if(i.chi!=j.chi)
return i.chi>j.chi;
else
return i.num<j.num;
}
by zeng_dx @ 2023-01-23 21:05:18
dalao栓Q