主要参考HDU2093-考试排名。通过对于结构体的排序来更深层次的理解结构体
题目网站:http://acm.hdu.edu.cn/showproblem.php?pid=2093
题解网站:https://blog.csdn.net/wlxsq/article/details/48187167
定义一个多组的结构体,我们可以这样来:
struct node{
char name[20];
int cnt;
int score;
}stu[N
主要参考HDU2093-考试排名。通过对于结构体的排序来更深层次的理解结构体
题目网站:http://acm.hdu.edu.cn/showproblem.php?pid=2093
题解网站:https://blog.csdn.net/wlxsq/article/details/48187167
定义一个多组的结构体,我们可以这样来:
struct node{
char name[20];
int cnt;
int score;
}stu[N