填空题

类的成员函数中,只能用于检测输入操作的函数是 [15] 。

【参考答案】

eof
<上一题 目录 下一题>
热门 试题

填空题
指出下面程序段中的错误,并说明出错原因 [13] 。 class Location int X, Y=20; protected: int zeroX, zeroY; int SetZero(int ZeroX, iht ZeroY); private: int length, height; public: float radius; void init(int initX,int initY); int GetX(); Int GetY(); ;
填空题
下列程序的运行结果是 [12] 。 include <iostream. h> class Sample int x,y; public: Sample() x=y=0; Sample(int a, int b) x=a;y=b; void disp() cout<< x= <<x<< , y= <<y<<end1; ; void main() Sample s1, s2(1, 2); s1. disp0; s2. disp ();
相关试题
  • 对于派生类的构造函数,在定义对象时构造函...