exit(0); }
fprintf(fp,\ for( j=0;j fprintf(fp,\ fprintf(fp,\ fclose(fp); return 0; } void sort(struct stu student[]) { struct stu temp; int i,j,k; for(i=0; i for(j=i+1; j if(student[j].aver < student[k].aver)k=j; if(k!=i) { temp=student[i]; student[i]=student[k]; student[k]=temp; } } } 2void writetofile(struct stu student[], char filename[],char mode[]){ FILE *fp; int i,j; if ((fp=fopen(filename,mode))==NULL) { printf(\ exit(0); } for( i=0;i fprintf(fp,\ for( j=0;j fprintf(fp,\ 26 fprintf(fp,\ } fclose(fp); } 27
C语言程序设计教程_李含光_郑关胜_清华大学出版社习题答案习题答案[完美打印版]
exit(0);}fprintf(fp,\for(j=0;j
推荐度:
点击下载文档文档为doc格式