PR

对于下面的程序
ifstream fin(C:///test.tXt);
if(fin)
cout<<"ok";
else
cout<<"wrong";
对于if语句中的内容可以换为

A:fin.fail() ; B:fin.bad() ; C:fin,good() ; D:fin.eof();

对于下面的程序:
ifstream fin(c:/test.txt) ;
if(fin)
cout < < "ok";
else
cout < < "wrong";
if语句中的内容可以换为

A:fin. fail( ) ; B:fin. bad( ) ; C:fin. good( ) ; D:fin. eof( ) ;

对于下面的程序
  ifstreamfin(c:/test.txt);
  if(fin)
  cout<<"ok";
  else
  cout<<"wrong";
  对于if语句中的内容可以换为

A:fin.fail( ); B:fin.bad( ); C:fin.good( ); D:fin.eof( );

对于下面的程序   ifstreamfin(c:/test.txt);   if(fin)   cout<<"ok";   else   cout<<"wrong";   对于if语句中的内容可以换为( )。

A:fin.fail( ); B:fin.bad( ); C:fin.good( ); D:fin.eof( );

对于下面的程序 ifstream fin(C:///test.tXt); if(fin) cout<<"ok"; else cout<<"wrong"; 对于if语句中的内容可以换为

A:fifail() ; B:fibad() ; C:fin,good() ; D:fieof();

对于下面的程序   ifstreamfin(c:/test.txt);   if(fin)   cout<<"ok";   else   cout<<"wrong";   对于if语句中的内容可以换为( )。

A:fin.fail( ); B:fin.bad( ); C:fin.good( ); D:fin.eof( );

对于下面的程序   ifstreamfin(c:/test.txt);   if(fin)   cout<<"ok";   else   cout<<"wrong";   对于if语句中的内容可以换为( )。

A:fin.fail( ); B:fin.bad( ); C:fin.good( ); D:fin.eof( );

微信扫码获取答案解析
下载APP查看答案解析