338
来源:互联网 发布:java class类 编辑:程序博客网 时间:2024/06/15 04:58
#include<stdio.h>
#include<stdlib.h>
int main(int argc,char *argv[])
{
FILE *in,*out;
char ch;
if(argc!=3)
{
printf("You forgot to enter a filename\n");
exit(0);
}
if((in=fopen(argv[1],"r"))==NULL)
{
printf("cannot open infile\n");
exit(0);
}
if((out=fopen(argv[2],"w"))==NULL)
{
printf("cannot open outfile\n");
exit(0);
}
while(!feof(in)) fputc(fgetc(in),out);
fclose(in);
fclose(out);
}
#include<stdlib.h>
int main(int argc,char *argv[])
{
FILE *in,*out;
char ch;
if(argc!=3)
{
printf("You forgot to enter a filename\n");
exit(0);
}
if((in=fopen(argv[1],"r"))==NULL)
{
printf("cannot open infile\n");
exit(0);
}
if((out=fopen(argv[2],"w"))==NULL)
{
printf("cannot open outfile\n");
exit(0);
}
while(!feof(in)) fputc(fgetc(in),out);
fclose(in);
fclose(out);
}
- 338
- spoj 338
- ocp-338
- LEETCODE 338
- stiBgnitnuoC.338
- leetcode 338
- 338CountingBits
- LeetCode 338
- LeetCode 338
- CF 338E Optimize!
- Codeforces Round #338
- Codeforces Round 338 C
- Round #338 (Div. 2)
- CF 338 Hexagons
- codeforces 338e
- Codeforces Round #338
- 【LeetCode-338】Counting Bits
- leetcode-338-Counting Bits
- google map 开发(2)- 数组循环加载多个标记
- Iphone开发(二)从helloWorld看app应用的运行轨迹和生命周期
- 海恩法则
- Android中的线程
- 做一个让人欣赏的女生
- 338
- 最大长方形
- awk 笔记之三 - 输入的处理 FS RS
- 当你扛不住的时候就读一遍
- WP7页面导航概述
- 黑马自学_Dom_事件、方法
- 二十岁的女孩应该有的思想
- 大整数加法函数
- c++深拷贝和浅拷贝