void print(struct student *head){ FILE *fp;struct student *p;if((fp=fopen("student.txt,"a+"))==NULL) { puts("不能打开此文件"); exit(0); }p=head;if(head!=null)do{fprintf(fp,"%ld% 5.2f\n",p->num,p->score);p=p->next;}while(p!=null);}应该是这样