You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
text4/void

14 lines
366 B

2 years ago
// 函数功能输入n个学生的m门课成绩
void ReadScore(STU stu[], int n, int m)
2 years ago
{
2 years ago
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 ----------- */
}