\r#defineSIZE4\rstructstudent-type\r{charname[10];\rintnum;\rintage;\rcharaddr[15];\r}stud[SIZE];\rmain()\r{i" /> \r#defineSIZE4\rstructstudent-type\r{charname[10];\rintnum;\rintage;\rcharaddr[15];\r}stud[SIZE];\rmain()\r{i" />

全文预览

《c语言程序设计》

上传者:读书之乐 |  格式:pdf  |  页数:65 |  大小:5531KB

文档介绍
r?`\r??`?“stu-list” \n!"@\r“stu-list”?#?\n$%&'p(\r#include<stdio.h>\r#defineSIZE4\rstructstudent-type\r{charname[10];\rintnum;\rintage;\rcharaddr[15];\r}stud[SIZE];\rmain()\r{inti;\rFILEfp;\rfp=fopen("stu-list","rb");\rfor(i=0;i<SIZE;i++)EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r{fread(&stud[i],sizeof(structstudent-type),1,fp);\rprintf(u%-10s%4d%4d%-15s\n,r,studfi].name,\r&stud[i].num,&stud[i].age,stud[i].addr);\rfclose(fp);\r(3)!"*+\r#include<stdio.h>\rmain()\r{FILEfpl,*fp2;\rfpl=fopen("filel.c”T');\rfp2=fopen(nfile2.c","wn);\rwhile(!feof(fp1))putchar(getc(fp1));\rrewind(fpl);\rwhile(!feof(fp1))putc(getc(fpl),fp2);\rfclose(fpl);fclose(fp2);\r)\r-./0??0123&'%?filel.c?45676\r?\r89feof?:;<(>)?@rewindA\nB??4567CDE4F\r?GHIBfeofA\n:JK0(L)

收藏

分享

举报
下载此文档