e (fp);\rRST100]\rUVWªr«¬r«¬3 ®¯a°jklmnyc±²³´«¬µ¶·¸®¯°¹XY_\rº»°¼½ac±XY_aº»dc¾xlstud]~\r1 .STdeW\r2 .STfghW\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(\n please input No. %d score:\ni);\rprintf("stuNo:");\rscanf (Àsstu[i]. num);\rprintf("name:");\rscanf ( ' s”, stu[i]. name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf("score %d. ”, j+1);\rscanf("%d&stu[i]. score[j]);\rsum+=stu[i]. score[j];\r)\rstu[i]. avr=sum/3. 0;\r}\rfpfopen("stud", w");\rfor(i=0;i<5;i++)\rif(fwrite(&stu[i], sizeof(struct student), 1, fp)!=1)\rprintf("file write error\nz);\rfclose(fp);\r)