首页>计算机>软件水平考试>模拟试题>正文
面向对象程序设计试题(三)

www.zige365.com 2010-7-5 15:48:45 点击:发送给好友 和学友门交流一下 收藏到我的会员中心

ofstream outf( “ d:\\tem.dat ” ,ios::trunc); 
outf<< “ look out! ” ; 
outf.close( ); 
ifsteam inf( “ d:\\tem.dat ” ); 
char k[20]; inf>>k; count<inf.close( ); 

23. 下面的程序有一处错误,请用下横线标出错误所在行并改正错误。 
# include 
class test{ 
public; 
static int x; 
}; 
int x=20;// 对类成员初始化 
void main ( ) 

cout<} 

本新闻共2页,当前在第2页  1  2  

我要投稿 新闻来源: 编辑: 作者:
相关新闻
面向对象程序设计试题(二)
面向对象程序设计试题(一)