(ÐÑ\rfÊÒ ÓÔ Õ Ì Í § Î ) \rÖקΠØÙ¶hBϸhÖ×?B®»Ú«¬RstudR`\r1 .\r?\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 i, j, sum;\rFILE *fp;\r/*input*/\rfor(i=0;i<5;i++)\r{ printf (z \n please input No. %d score:\nz , i);.\rprintf("stuN o:R)8\rscanf (Rns 0stu[i]. num);\rprintf("nam e:R);\rscanf ( z%sz/, stu [i]. name);\rsum=0;\rfor(j=0; j<3; j++)\r{ p rin tf (''score %d. 0j+1);\rscanf(RndR, s c o r e [ j ] ) ;\rsum+=stu[i]. sc o re tj];\r)\rstu[i]. avr=sum/3. 0;\r}\rfp=fopen(Rstud 0 wR);\rfor(i=0;i<5;i++)\rif (fwrite(& stu[i], sizeof (struct student), 1, fp) !=1)\rp rin tf (z file write error\n /) ;\rfclose(fp);