
n.往文件中寫
fread,fwrite,fseek vs createfile,&n... 函數(shù)的重載叫編譯時的多態(tài)性對不?
fwrite(&book[i],sizeof(struct book),1,fp); "請你設(shè)定書的狀態(tài)");
-himself wrote an IO of the simulated what fopen, fread and fwrite. 詳細(xì)說明: 自己寫的一個IO庫,模擬了一下fopen
int fwrite (void *ptr, int size,int nitems,FILE *stream); 文件承受機(jī)讀寫函數(shù):int fread(void *ptr,int size,int nitems,FILE *stream);