//7. 编写学生管理系统,其中学生的信息有姓名(汉字或汉语拼音,最多 20 个字符).
//性别(男 / 女,用1表示男,0表女)、生日(19850101 (年月日))身高(以m为单位)
//还需要处理C语言、微积分两门课的成绩,请编写程序实现功能:输入学生的人数和每个
//学生的信息; 输出每门课程的总平均成绩、最高分和最低分,以及获得最高分的学生的信息
//需要注意的是某门课得最高分的学生可能不只一人。
#include<stdio.h>
#include<stdlib.h>
struct Student {
char name[21];
int sex;//1男0女
char birth[8];
double height;
double c_score;
double w_score;
};
void print(struct Student* students, int i);
int main() {
int n;
scanf("%d", &n);
struct Student *students= (struct Student*)(malloc(sizeof(struct Student) * n));
if (!students) {
printf("内存分配失败\n");
return 1