while(p){add+=p->com;n++;p=p->next;}printf("计算机成绩",add/n);printf("\t\t");这句语句出现警告:参数格式太多,如何改?
printf("计算机成绩%f",add/n); 假设add是float,如果是int要改成add*1.0/n