fid=fopen(\"d:/en_dsp/enc.sea\",\"rb\");
if (fid==NULL)
{
cout<<\"can\'t open file\\n\"<<endl;
return;
}
……
我想用这样的一段程序,判断文件是否打开,结果编译的时候出错,提示如下
\"en_d.c\", line 231: error: identifier \"cout\" is undefined
\"en_d.c\", line 231: error: expression must have integral type
\"en_d.c\", line 231: error: identifier \"endl\" is undefined