;\rputchar(c);\r)\rfclose(fp);\r)\rK& ' 100]\rM N ÀÔuÕ uÕÀ3 Ö×µØ ¡¢£?@ÙÚÛÜ\rÕ Ý Þ ß "Ö×µØà áâµØãäÀ@Ù?áâ\r(@¼Åå«¡·¸“stud” #\r1 .&'()\r2 .&'+,\r#include "stdio.h\rstruct student\r{ char num[6];\rchar name[8];\rint score[3];.\rfloat avr;\r} stu[5];\rmainQ\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("stuNo:");\rscanf("%s",stu.num);\rprintf("name:");\rscanf("%s",stu.name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf("score %d.",j+l);\rscanf("%d",&stu.score[j]);\rsum+=stu.score[j];\r)\rstu.avr=sum/3.0;\r)\rfp=fopen("stud","w");\rfor(i=0;i<5;i++)\rif(fwrite(&stu,sizeof(struct student), l,fp) != 1)\rprintf("file write eiTor\n");\rfclose(fp);