Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试将 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);