\rJKj?`?j3dY
`LM0??e@``\rY
`]\rY
`jdl]dcn 0^_"stud"a?\r1 .\r2 .\r#include "stdio.h".\r#include "conio.h'*\rstruct student\r(\rchar num(6];\rchar name[8];\rint score[3];\rfloat avr;\r}stu[5];\rmain()\r(\rint ij,sum;\rFILE *fp;\rginput*/\rfor(i=0;i<5;i++)\r(\rprintf(n\n please input No. %d score:\n"3)i\rprintf(^'stuNo:,^);\rscanf("%sn,stu[i].num);\rprintf(,,name:M);\rscanf("%s",stu[i].name);\rsum=0;\rfor(j=0;j<3;j++)\r(\rprintf("score %d.'\j+l);\rscanf(u%du,&stu[i].score[j])i\rsum+=stu[i].score[j];\r)\rstufi].avr=sum/3.0;\r)\rfp=fopen(',stud,,,"wn);\rfbr(i=O;i<5;i++)\rif(fwrite(&stu[i],sizeof(struct student),l,fp)!= 1)\rprintfC'file write erroAn");\rfclose(fp);\rgetch();\r)