#include <stdlib.h>磨数举
char CopyFile()//申明函数
void main()
{
system("mkdir C:\\aa")//瞎碧创建文件夹
CopyFile()
}
char CopyFile()
{
FILE *fp1,*fp2
char c
char source[20],destine[20]
printf("please input source filename:")
scanf("%s",source)
if((fp1=fopen(source ,"r"))==NULL)
{
printf("error opening file %s\n",source)
exit(0)
}
if((fp2=fopen(destine ,"w"))==NULL)
{
printf("error opening file %s\n",destine)
exit(0)
}
while(!feof(fp1))
{
c=fgetc(fp1)
fputc(c,fp2)
}
printf("\毕郑nok!\n")
fclose(fp1)
fclose(fp2)
return c
}
超级文本C 语言程序库http://www.moon-soft.com/download/soft/3949.htm
C语或搭型言程序枝扒宝典http://www.vipcn.com/SoftDown/SoftDown_3395.html,网上还有很多的其实,可以衫猜自己再搜一下
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)