填空题

测试用例包括输入值集和______值集。

【参考答案】

输出
<上一题 目录 下一题>
热门 试题

单项选择题
有如下程序: #include<iostream> using namespace std; class Amount{ int amount; public: Amount(int n=0):amount(n){ } int getAmount( )const{return amount;} Amount&operator+=(Amount A) { amount+=a.amount; return; } }; int main( ){ Amount x(3),y(7); x+=y: cout<<x.getAmount( )<<endl; return 0; } 已知程序的运行结果是10,则下画线处缺失的表达式是
A.*this
B.this
C.&amount
D.amount
单项选择题
有如下程序: #include<iostream> using namespace std; class GA{ public: virtual int f( ){return 1;} }; class GB:public GA{ public: virtual int f( ){return 2;} }; void show(GA g){eout<<g.f( );} void display(GA&g){cout<<g.f( );} int main( ){ GA a;show(A) ;display(A) ; GB b;show(B) ;display(B) ; return 0; } 程序的输出结果是
A.1111
B.1211
C.11 2
D.1212
相关试题
  • 如下程序声明了一个电话号码类PhoneNumber...
  • 如下程序声明了一个二维图形类TwoDShape,...
  • 如下程序声明了一个使用两个通用数据类型的...
  • 在类的对象被创建的时候,______函数...
  • 有如下程序: #include<iostream> usi...