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.
367 B
367 B
//1 函数功能:输入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 ----------- */
}