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.

16 lines
377 B

#include "mysyslib.h"
void Print(Student*student){
printf("%s,%s,%s,%.1lf,%.1lf,%.1lf,%.1lf\n",student->id,student->class,student->name,student->score1,student->score2,student->score3,student->score);
}
void allPrint(ss*stu){
if(stu->nums){
for(int i = 0; i < stu->nums; ++i){
Print(&stu->student[i]);
}
}else{
printf("No data exist\n");
}
}