
文件操作
brighttown
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
0x0d 0x0a
昨天在搞一个读文件的程序,才发现fscanf不能识别“/n”,因为它不是标准的stream io,只能用fread了,可是用了半天回车换行只能找到0x0a,找不到0x0d。最后发现是文件打开方式有关如果用r打开它会忽略0x0d只认0x0a,要两个都认就要用rb二进制方式打开,折腾呀~~~~折腾原创 2009-04-12 16:38:00 · 713 阅读 · 0 评论 -
memmove & memcopy ~~~
void *MemCopy(void * pDestArg, const void * pSrcArg, unsigned int nSize){ char *pDest = (char *)pDestArg; char *pSrc = (char *)pSrcArg; while (nSize--) { *pDest ++ = *pSrc ++; }转载 2009-04-14 09:47:00 · 883 阅读 · 0 评论 -
feof 作为循环判断条件的问题
>My program is reading the last line of data from an infile twice.Ill bet my next paycheck that your file processing loop looks like this:Help with Code Tags (<a onclick="function anonymous()转载 2009-04-03 11:34:00 · 542 阅读 · 0 评论