输入n个学生的m门课成绩

L
tong tong zhang 2 years ago
parent db39dfb056
commit 939ab76382

@ -0,0 +1,13 @@
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