);\rputchar(c[i]);\r)\rfclose(fp);\r/0 1 100]\r234 ?tupvtu 3 wx%ypHIJK`z{|}tu~p,\r*wx%ypY\r#$%yp
zeY#$?z_g[J\]"stud”\r1 .01?>4\r2 .01?@A4\r#include Hstdio.hH\rstruct student.\r{ char num[6);\rchar name[8];\rint score[3];\rfloat avr;\r} stu[5];\rmain()\r{int ijsum;\rFILE *fp;\r/ginput*/\rfor(i=0;i<5;i++)\r{ printf(H\n please input No. %d score:\nn,i);\rprintf(MstuNo:n);\rscanf(H%s,\stu[i].num);\rprintf(uname:M);\rscanf(M%s,\stu[i].name);\rsum=0;\rfor0=0;j<3;j++)\r{ printf(nscore %d.Hj+l);\rscanf(M%dH,&stu[i].score[j]);\rsum+=stu[i].score[j];\r}\rstu[i].avr=sum/3.0;\r)\rfp=fopen(nstudH,MwH);\rfor(i=0;i<5;i++)\rif(fwrite(&stu[i]9sizeof(struct student),l,fp)!=l)\rprintf(nfile write error\nH);\rfdose(fp);