Merge branch '计算每个学生各门课程的总分和平均分' of https://bdgit.educoder.net/p2i3t8vuh/text4

master
李培毅 2 years ago
commit 9f89d2c09a

14
void

@ -0,0 +1,14 @@
// 函数功能输入n个学生的m门课成绩
void ReadScore(STU stu[], int n, int m)
{
int i, j;
printf("Input student's ID, name and score:\n");
/* ---------- begain ---------- */
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]);
}
/* ----------- end ----------- */
}
Loading…
Cancel
Save