XZL_打印学生成绩

XZL_打印学生成绩
xuzilin 2 years ago
parent 7368fa23c7
commit da7ccd365a

@ -299,7 +299,16 @@ void StatisticAnalysis(STU stu[],int n,int m)
``` ```
void PrintScore(STU stu[],int n,int m) void PrintScore(STU stu[],int n,int m)
{ {
int i,j;
for (i=0; i<n; i++)
{
printf("%ld\t%s\t", stu[i].num, stu[i].name);
for (j=0; j<m; j++)
{
printf("%.0f\t", stu[i].score[j]);
}
printf("%.0f\t%.0f\n", stu[i].sum, stu[i].aver);
}
} }
``` ```

Loading…
Cancel
Save