C简单问题
帮忙解释下下面的语句:
FILE *fp = fopen(file, "r ");
fscanf(fp, "P6 %d %d 255\n ",width,height);
..........
fscanf(fp, "%c ",&buf[i][j]);
C++中用习惯cout和cin了,C的这种东西看不懂啊!
[解决办法]
"P6 %d %d 255\n "
例如width=1,height=2
为P6 1 2 255