ZY_输入n个同学的m门成绩 #11

Merged
pvfj5ugro merged 1 commits from ZY_输入n个同学的m门成绩 into master 2 years ago

@ -179,7 +179,16 @@ int Menu(void)
```
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--------------*/
}
```

Loading…
Cancel
Save