摘要:
0. 文件操作相关函数 1. 文件分为字符方式读写,字节方式(二进制方式)读写 fprintf / fscanf fread / fwrite (二进制方式读写) 2. 判断为空 FILE * file NULL!=file 文件结尾判断 EOF!=scanf 3. 清空缓存字符 未完待续... 阅读全文
posted @ 2016-12-30 23:41
welcome_home
阅读(251)
评论(0)
推荐(0)
摘要:
0. C语言的标准输入输出 stdin stdout stderr 1. 重定向到文件 输出结果 2. 方式二 重定向(windows): 若输入_Test.exe <data_in.txt >data_out.txt 则从data_in.txt把“hello”读到str中,在把str打印到data 阅读全文
posted @ 2016-12-30 23:17
welcome_home
阅读(212)
评论(0)
推荐(0)

浙公网安备 33010602011771号