main函数
编译连接成功,运行有误。#include<stdio.h>
int main(int argc,char *argv[])
{
int i,*in,*out;
FILE *infile,*outfile;
if((infile=fopen(argv[1],"r"))==NULL)
printf("Can not open the file 'argv[1]' ");
if((outfile=fopen(argv[2],"w"))==NULL)
printf("Can not open the file 'argv[2]' ");
fscanf(infile,in);
for(i=0;in[i]!='\0';i++)
out[i]=in[i];
fprintf(outfile,out);
}