填空题

表达式x.operator+(y.operator++(0))还可以写成______。

【参考答案】

x+y++ 或x+(y++)
<上一题 目录 下一题>
热门 试题

填空题
有如下类声明: class TestClass1 int k; public: void set(int n)k=n; int get()constreturn k; ; class TestClass2:protected TestClass1 protected: int j; public: void set(int m,int n)TestClass1::set(m);j=n; int get()constreturn TestClass1::get()+j;) ; 则类TestClass2中保护的数据成员和成员函数的个数是______。
填空题
执行以下程序后,输出“*”号的个数是______。 #include<iostream.h> main() int i,j; for(i=1;i<5;i++) for(j=2;j<=i;j++) cout<<’*’;
相关试题
  • 已知一个函数的原型是: int fn(double...
  • 非成员函数应声明为类的______函数才...
  • 指针数组是由______构成的数组。
  • 以下函数实现的功能是______。 void...
  • 在类中,______成员为类的所有对象所...