[i]);\r)\rfclose(fp);\rL7 8 100æ\rMN:4 ®ç®ç43 èé$ê,¼½¾¿0S?\r(ëì®çíî(èé$ê),¸¹\r"#$êï14S?h¸¹"#`SÔÚƾÑÒ“stu\rd”.\r1 .78`9:\r2 .78;<=:\r#include "stdio.hH\rstruct student\r{ char num[6];\rchar name[8J;\rint score[3];\rfloat avr;\r} stu[5];\rmain()\r{int i,j,sum;\rFILE *fp;\r/"input*/\rfor(i=0;i<5;i++)\r{ printf("\n please input No. %d score:\n",i);\rprintf(MstuNo:n);.\rscanf(n %s" ,stu [i]. num);\rprintf(',name:n);\rscanf("%sn,stu[i].name);\rsum=O;\rfor(j=0;j<3;j++)\r{ printf("score%d.”,j+l);\rscanf("%d",&stu[i].score[j]);\rsum+=stu[i] .score[j];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen(“stud",“w”)>\rfor(i=0;i<5;i++)\rif(fwrite(&stu[i],sizeof(struct student),l,fp)!=l)\rprintf(nfile write error\n");\rfclose(fp);