0]\r&'(¶ÊHWË@ÌHW˶3 ÍÎY©Ï@±,ÐÑÒÓWËÔ@ÕÖ@×ÍΩÏ~@
\rØÙ©Ï@ÚÛ¶Y,й
YØÙ0,°¼Ü®studS\r1 ."#01(\r2 ."#345(\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:\n@z, i);\rprintf(stuNo:)_.\rscanf (%s@stu[i]. num);\rprintf("name:)_\rscanf (/z%s@z, stu[i]. name);\rsum=O;\rfor(j=0;j<3;j++)\r{ printf ("score %d. , j+1);\rscanf 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 ('"file write error\nz@) ;\rfclose(fp);