c++ sort

 

老是搞混

 

return bool

 

eg.

1 bool cmp(node a,node b)
2 {
3     if (a.score==b.score)
4         return strcmp(a.name,b.name)<0;
5     else
6         return a.score>b.score;
7 }

 

posted @ 2019-02-27 19:56  congmingyige  阅读(106)  评论(0编辑  收藏  举报