2007-09-04 10:51
8.3 程序分析题
1.读程序,写功能。
# include
# include
main()
{ FILE *f1,* f2;
int k;
if(( f1= fopen(“c:\\tc \\ pl.c”,“r” )== NULL)
{ printf(“Can not open file! \n”);
exit(0);
}
if((f2= fopen(“a:\\ pl.c”,“w” ))== NULL)
{ printf(“Can not open file! \n” );
exit(0) ;
}
for( k=1;k<=l000;k++)
{ if( feof(f1)) break;
fputc( fgetc(f1),
自考365
2022-01-16
自考365
2022-01-16
自考365
2022-01-16