0

尝试将 pgm 的标头复制到另一个时出现错误。有人可以告诉我哪里错了吗?

    FILE *infile;
infile = fopen(fin, "rb");
fscanf(infile, "%s %d %d %d\n",&type,&u,&v,&depth);

FILE *outfile;
outfile = fopen(fout, "wb");    
fprintf(outfile, "%s %d %d %d\n",&type,u,v,depth);  
4

0 回答 0