填空题

有如下类声明:
class MyClass
int i;
private: int j;
protected: int k;
public: int m, n;
;
其中,私有成员的数量为______。

【参考答案】

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

填空题
若下面程序运行时输出结果为: 1,A,10.1 2,B,3.5 请将程序补充完整。 #include<iostream> using namespace std; int main() void test(int, char,double______); test(1, ’A’, 10.1); test(2, ’B’); return 0; void test(int a, char b, double c) cout<<a<<’,’<<b<<’,’<<c<<end1;
填空题
有如下程序: #include<iostream> using namespace std; class PARENT public: PARENT()cout<< PARENT ;) ; class SON:public PARENT public: SON()cout<< SON ; ; int main() SON son; PARENT *p; p=&son; return 0; 执行上面程序的输出是______。
相关试题
  • 以下程序的执行结果是______。 #in...
  • 下列函数的功能是判断字符串str是否对称,...