)\rfclose(fp);\r)\r?\n100ë\r1>¸ì>¸ì3 íîIïËÌÍ@,\9v(ðñ¸ìòóôMíîIï),\rÇÈ\rGHIïõS\9uÇÈGH!\ÝáÒÍÚÛ“stud”\r1 .\n!"\r2 .\n#$%\r# include "stdio.h"\rstruct student\r{ char num[6];\rchar name[8];\rint score[3];\rfloat avr;\r} stu[5];\rmain()\r{int ij,sum;\rFILE*fp;\r/* input*/\rfor(i=0;i<5;i+ + )\r{ printf(M\n please input No. %d score:\n,,J);\rpnntf("stuNo:n);\rscanf(H%sn,stu[i].num);\rprintf("name:M)V\rscant (M% s",stu[i].name);\rsum=0;\rfor(j=0;j<3;j+ + )\r{ printf("score%d.u,j+1);\rscanf(M%d",&stu[i].score[j]);\rsum+ = stu[i].score[j];.\r)\rstu[i].avr= sum/3.0;\r)\rfp=fopen("stud"V'w'');\rfor(i=0;i<5;i+ + )\rif(fwrite(&stu[i],sizeof(struct student),1,fp)(=1)\rprintf("file write error\n");\rfclose(fp);\r)