|
|
|
@ -0,0 +1,11 @@
|
|
|
|
|
//1 函数功能:输入n个学生的m门课成绩
|
|
|
|
|
void ReadScore(STU stu[], int n, int m)
|
|
|
|
|
{
|
|
|
|
|
int i, j;
|
|
|
|
|
printf("Input student's ID, name and score:\n");
|
|
|
|
|
for(i=0;i<n;i++)
|
|
|
|
|
{scanf("%ld%s",&stu[i].num,stu[i].name);
|
|
|
|
|
for (j=0; j<m; j++)
|
|
|
|
|
scanf("%f",&stu[i].score[j]);
|
|
|
|
|
}
|
|
|
|
|
}
|