.\r?\r#include "stdio.h',\rstruct student\r{ char num[6];\rchar name[8J;\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\n please input No. %d score:\n",i);\rprintf("stuNo:^');\rscanf(H%s),,stu[i].num);\rprintfCname:1');\rscanf(n%su,stu[i].name);\rsum=0;\rfor(j=0;j<3;j++)\r{ printf("score %d.'\j+l);\rscanf("%d",&stu[i].score[j]);\rsum+=stu li J.score [j J;\r)\rstu[iJ.avr=sum/3.0;\r}\rfp=fopen(',stud'V`wu);\rfor(i=0;i<5;i++)\rif(fwrite(&stu[ij,sizeof(struct student)J,fp)!= 1)\rprintf("file write error\nu);\rfclose(fp);\r? http://www.diybl.eom/course/3_program/c/cxl/200716Z2759_2.html\r? http://www.diybl.eom/course/3_program/c/cxl/200716/2759.html