;\rfclose(fp);\r?7 8 100]\r@A: ?¦ßpx¦ß 3 àá&âp¹º»¼Gãäå¦ßæpçè,\r*àá&â±p²³{\r$%&âpé1 G^²³{$%?GÏÓ
»ÌÍêtud”\r1 .78?9:\r2 .78;<=:\r#include "stdio.h"\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*/\rfbr(i=0;i<5;i++)\r{ printf("\n please input No. %d score:\nn,i);\rprintf(nstuNo:n);\rscanf("ts”,stu[i].num);\rprintf(uname:");\rscanf( M%s H,stu [i] .name);\rsum=0;\rfbr(j=0;j<3;j++)\r{ printf("score %d.n,j+l);.\rscanf(',%d,,,&stu[i].score [j ]);\rsum4-=stu[i].score|j];\r)\rstu[i].avr=sum/3.0;\r)\rfp=fopen( "st ud ", “ w ")N\rfor(i=0;i<5;i++)\rif(fwrite(&stu[i],sizeof(struct student),l,fp)!=l)\rprintf(Hfile write error\n");\rfclose(fp);