设置流的buf大小: http://www.cplusplus.com/reference/cstdio/setvbuf/
/* setvbuf example */ #include <stdio.h> int main () { FILE *pFile; pFile=fopen ("myfile.txt","r); setvbuf ( pFile , NULL , _IOFBF , 1024 * 512 ); // File operations here fclose (pFile); return 0; }
70,020
社区成员
243,264
社区内容
加载中
试试用AI创作助手写篇文章吧