填空题

有如下类声明:
class MyClass

int i;
private: int j;
protected: int k;
public:int m,n;
;
其中,私有成员的数量为______。

【参考答案】

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

填空题
阅读下面程序: #include<iostream.h> void fun(int n) int x(5); static int y(10); if(n>0) ++x; ++y; cout<<x<< , <<y<<end1; void main() int m(1); fun(m); 则该程序的输出结果是______。
填空题
下列程序的输出结果是______。 #include<iostream.h> #include<string.h> using namespace std; void fun(const char*s,char &C) c=s[strlen(s) 2]; int main() char str[]= ABCDE ; char ch=str[1]; fun(str,ch); cout<<ch; return 0;
相关试题
  • 阅读下面的程序: #include<iostream.h...
  • 在C++中,实现封装性需借助于( )。
  • 设有关键码序列(Q,G,M,Z,A,N,B,P,...
  • 以下程序的输出结果是( )。 #include...
  • 算法的有穷性是指( )。