#include
#define N 2
struct student
{int xh;
float score[4];
char name[20];
float average;
int num;
}std[100];
int n=0; /*学生总人数*/
/* 输入学生数据*/
void srsj()
{ FILE *fp;
fp=fopen("lishengjie.txt","w");
int i,j;
for(i=0;i",i+1);
printf("请输入学生学号:
");
scanf("%d",&std[i].xh);
for(j=0;j");
printf("请输入学生学号:
");
scanf("%d",&std[i].xh);
}
}
printf("请输入学生姓名