+, - 100³\r012´|µ¶\r·|µ¶3 ¸¹pº\ruvwxyr»¼½µ¶¾\r¿À,\rÁ¸¹ºS\rghn\rÂú\rÄÅpr»¡ghnpÂÃ;r¤Æw“stud"l\r1.,-;<2.\r2.,-=>?2\r#include stdio. h\rstruct student\r{ char num[6];\rchar name[8];\rint score[3];\rfloat avr;\r} stu Ç \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\ri);\rprintf("stuNo:");\rscanf(fs\rstu[i]. num);\rprintf("name:)\rscanf(%s\rstu[i]. name);\rsum=O;\rfor(j=0;j<3;j++)\r{ printf("score %d. \rj+1);\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), 1, fp)!=1)\rprintf C'file write error\nz\r);\rfclose(fp);\r)