#include#include #include using namespace std; struct sa{//此处不能用stu否则后面写cmp函数会报错 char name[25]; int cj; }stu[20]; int cmp(const sa &a,const sa &b) { if(a.cj!=b.cj)return a.cj>b.cj; else return a.name[0]

#include#include #include using namespace std; struct sa{//此处不能用stu否则后面写cmp函数会报错 char name[25]; int cj; }stu[20]; int cmp(const sa &a,const sa &b) { if(a.cj!=b.cj)return a.cj>b.cj; else return a.name[0]
上一篇 C语言 错误 [Error] ‘prinft‘ was not declared in this scope的解决办法
下一篇 初学Jsp+Java Beans遇到的问题:在[com.demo.User]类型bean中找不到任何有关属性[username]的信息