|
|
@ -179,7 +179,16 @@ int Menu(void)
|
|
|
|
```
|
|
|
|
```
|
|
|
|
void ReadScore(STU stu[],int n,int m)
|
|
|
|
void ReadScore(STU stu[],int n,int m)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
int i,j;
|
|
|
|
|
|
|
|
printf("Input student's ID ,name and score:\n");
|
|
|
|
|
|
|
|
/*-----------begin----------*/
|
|
|
|
|
|
|
|
for(i=0,i<n;i++) //输入n个同学
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
scanf("%ld%s",&stu[i].num,stu[i].name);
|
|
|
|
|
|
|
|
for(j=0;j<m;j++) //输入m门成绩
|
|
|
|
|
|
|
|
scanf("%f",&stu[i].score[j]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/*---------------end--------------*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|