填空题
假定用户没有给一个名字为Sampie的类定义构造函数,则系统为其隐含定义的构造函数为______。
【参考答案】
Sample( ){}
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下列程序的运行结果是______。 #include<iostream.h> class Base public: void f(int x)cout<< Base: <<x<<endl; ; class Derived:public Base public: void f(char*str)cout<< Derived: <<str<<endl;) ; void main(void) Base*pd=new Base; pd=new Derived; pd->f(’a’);
点击查看答案&解析
填空题
下列程序用于将源文件中的字母进行大小写转换,while的条件是______。 #include<iostream.h> #include<fstream.h> #include<iomanip.h> void main( ) char ch; fstream filel,file2; char fnl[10],fn2[10]; cout<< 输入源文件名: ; cin>>fn1; cout<< 输入目标文件名: ; cin>>fn2; filel.open(fnl,ios::in); file2.open(fn2,ios::out); while(______) if(ch>=’a’&&ch<=’z’) ch=ch=’a’+’A’; file2.put(ch); filel.close( ); file2.close( );
点击查看答案&解析
相关试题
以下程序的执行结果是______。 #in...