c
soundtravel
这个作者很懒,什么都没留下…
展开
-
C语言文件操作函数大全
C语言文件操作函数大全 clearerr(清除文件流的错误旗标) 相关函数 feof 表头文件 #include 定义函数 void clearerr(FILE * stream); 函数说明 clearerr()清除参数stream指定的文件流所使用的错误旗标。 返回值 fclose(关闭文件) 相关函数 close,fflush,fopen,setbuf转载 2011-10-23 20:30:22 · 131 阅读 · 0 评论 -
C++中关于数组传递
本文需要解决C++中关于数组的2个问题: 1. 数组作为函数参数,传值还是传址? 2. 函数参数中的数组元素个数能否确定? 先看下面的代码。 view plain #include using namespace std; void testArrayArg(int a[]) { cout转载 2011-10-29 11:03:43 · 193 阅读 · 0 评论