摘要: 文件的操作标准流stdin 标准输入流 stdout 标准输出流 stderr 标准错误流FILE 文件位置指示符 错误指示符 文件结束指示符1,提高速度 使用文件指针2 文件指针与磁盘文件建立联系,以后对文件操作都将通过文件指针来进行。 fopen(文件名,使用文件方式) 文件打开不成... 阅读全文
posted @ 2015-04-18 16:23 码农@163 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include 3 #include 4 #define N 80 5 int CopyFile(const char *srcName,const char *dstName); 6 int main() 7 { 8 char src... 阅读全文
posted @ 2015-04-18 11:21 码农@163 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include 3 #include 4 #define N 30 5 typedef struct date 6 { 7 int year; 8 int month; 9 int day;10 }DATE;11 typ... 阅读全文
posted @ 2015-04-18 10:52 码农@163 阅读(285) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include typedef struct date{ int year; int month; int day;}DATE;typedef struct student{ long studentID; ch... 阅读全文
posted @ 2015-04-18 09:31 码农@163 阅读(1409) 评论(0) 推荐(0) 编辑