;\rfp=fopen(nCn0'wu);\rfor(i=0;i<n;i++)\r{putc(c,fp);\rputchar(c);\r)\rfclose(fp);\r100]\r"#$m0.0m3
h^.%&'()i7(.,\r
^).b^.mhobhCgq6'cd“stud”\re@\r1.CD$\r2.EFG$\r#35;include"stdio.h"\rstructstudent\r{charnum[6];\rcharname[8];\rintscore[3];\rfloatavr;\r}stu[5];\rmain()EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r{inti,j,sum;\rFILE*fp;\r/*input*/\rfor(i=0;i<5;i++)\r{printf("\npleaseinputNo.%dscore:\n",i);\rprintf("stuNo:");\rscanf("%sH,stu.num);\rprintf("name:");\rscanf("%s",stu.name);\rsum=0;\rfor(j=0;j<3;j++)\r{printf("score%d.uj+l);\rscanf(H%du,&stu.score[j]);\rsum+=stu.score[j];\r)\rstu.avr=sum/3.0;\r)\rfp=fopen("stud'V'wn);\rfor(i=0;i<5;i++)\rif(fwrite(&stu,sizeof(structstudent),l,fp)!=l)\rprintf(nfilewriteerror\nH);\rfclose(fp);