o#define ID_LEN 20 // 学生学号字符数组的最大长度
o#define NAME_LEN 20 // 学生姓名字符数组的最大长度
o#define MAJOR_LEN 50 // 专业名称字符数组的最大长度
o#define MAX_NUM 100 // 学生数组的最大数目
o
o// 学生信息结构体定义
oTypedef struct _StudentInfo
o{
nCharid[ID_LEN]; // 学号
nCharname[NAME_LEN]; // 姓名
nIntgender; //性别, 0-男;1-女
nIntage; // 年龄
nChar major[MAJOR_LEN]; // 专业
nInt class; // 班级
nDouble score1; // 语文成绩
nDouble score2; // 数学成绩
nDouble score3; // 英语成绩
} StudentInfo;
// 定义学生信息数组
StudentInfo stuList[MAX_NUM];
做好后再另悬赏分