摘要: #include #include //功能: 合并2个源文件的内容,到一个新的文件中 int main(int a,char *argv[]){ if(a!=4){ printf("请输入3个文件路径:%s\n", argv[0]); exit(1); } FILE *fp1,*fp2,*fp3; fp1 = fopen(argv[1],"r"); if(fp1==NUL... 阅读全文
posted @ 2018-03-20 23:02 王默默 阅读(247) 评论(0) 推荐(0) 编辑
摘要: #include #include #define IS_WHITE_SPACE(c) ((c)==' '||(c)=='\t'||(c)=='\n') ? 1:0 //统计文件:内容大小字节 和函数 int main(int a,char *argv[]){ if(a!=2){ printf("useage:%s source!\n", argv[0]); exit(1); ... 阅读全文
posted @ 2018-03-20 22:04 王默默 阅读(305) 评论(0) 推荐(0) 编辑
摘要: #include #include //文件的内容复制 int main(int a,char *argv[]){ if(a!=3){ printf("useage:%s source!\n", argv[0]); exit(1); } FILE *fp1, *fp2; fp1 = fopen(argv[1],"r"); if(fp1==NULL){ prin... 阅读全文
posted @ 2018-03-20 21:54 王默默 阅读(487) 评论(0) 推荐(0) 编辑