13.2
来源:互联网 发布:圆形水池计算软件 编辑:程序博客网 时间:2024/05/17 16:02
#include<stdio.h>
#include<stdlib.h>
int main()
{
FILE *in,*out;
char ch,infile[10],outfile[10];
printf("Enter the infile name :\n");
scanf("%s",infile);
printf("Enter the output name :\n");
scanf("%s",outfile);
if((in=fopen(infile,"r"))==NULL)
{
printf("cannot open infile \n");
exit(0);
}
if((out=fopen(outfile,"w"))==NULL)
{
printf("cannot open outfile \n");
exit(0);
}
while(!feof(in))
fputc(fgetc(in),out);
fclose(in);
fclose(out);
return 0;
}
#include<stdlib.h>
int main()
{
FILE *in,*out;
char ch,infile[10],outfile[10];
printf("Enter the infile name :\n");
scanf("%s",infile);
printf("Enter the output name :\n");
scanf("%s",outfile);
if((in=fopen(infile,"r"))==NULL)
{
printf("cannot open infile \n");
exit(0);
}
if((out=fopen(outfile,"w"))==NULL)
{
printf("cannot open outfile \n");
exit(0);
}
while(!feof(in))
fputc(fgetc(in),out);
fclose(in);
fclose(out);
return 0;
}
- 13.2
- 13.2
- 13.2
- 13.2
- 13.2
- 实验13.2
- 13.2 UPDATE
- 13.2.1
- 13.2.2
- 13.2 Explicit conversions
- WinHex ver.13.2 Beta
- WinHEX 13.2 SR-3
- 13.2 匹配集合Matches
- 检测点13.2
- 13.2.4 目录操作
- 13.2.6 错误处理
- 百度笔试题13.2
- 13.2 连接到世界银行
- 冒泡排序
- 随笔-能够让我们感觉美好的只是回忆而已
- 0/1背包问题
- poj 3620 Avoid The Lakes
- linux块设备6
- 13.2
- poj 3614 Sunscreen
- 安意如美丽的句子
- 线程池ThreadPoolExecutor参数设置
- Posix线程编程指南(1)
- OpenCV-我的开始
- WIN7 X64 GDAL GEOS 编译
- 基于Windows8与Visual Studio11开发第一个内核驱动程序
- Delphi写的多媒播放器