回复 10楼 cnfarer
不能编译;你看是这样改不。。/*---------------------------------------------------------------------------------*/
if(same_state==0)
{
for(int j=r-1;j>=0;j--){
fprintf(fp,"%d ",q[j]);//写数据
printf("%d ",q[j]);
}
fprintf(fp,"\n");
putchar('\n');
}
}
}
fclose(fp);
}
出错显示;
-------------------Configuration: 1 - Win32 Debug--------------------
Compiling...
1.cpp
C:\Documents and Settings\Administrator\1.cpp(51) : error C2065: 'fp' : undeclared identifier
C:\Documents and Settings\Administrator\1.cpp(51) : error C2296: '*' : illegal, left operand has type 'struct _iobuf *'
执行 cl.exe 时出错.
1.obj - 1 error(s), 0 warning(S)