level 1
#include
#include
void main(int argc,char *argv[]){ FILE * fp1,* fp2; char c,ch; long i,j; if(argc!=3) exit(0); fp1=fopen(argv[1],"rb"); fp2=fopen(argv[2],"wb"); if(fp1==NULL||fp2==NULL) printf("cannot open file\n"); exit(1); printf("inserd you computer ID:"); scanf("%i",&j); srand(j); ch=fgetc(fp1); while(! fcof(fp1)) {c=rand(); ch=char c; fputc(ch,fp2); ch=fgetc(fp1); } fclose(fp1); fclose(fp2); exit(0);}
2005年10月17日 13点10分