填空题

有如下类声明:
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;
填空题
下列函数的功能是判断字符串str是否对称,对称则返回true,否则返回false。请在横线处填上适当内容,实现该函数。 bool fun(char *str) int i=0,j=0; while(str[j]) j++; for(j--;i<j && str[i]==str[j]; i++,j--); return i______j;
相关试题
  • 阅读下面的程序: #include<iostream.h...
  • 定义如下枚举类型:enumMonday, Tuesday...
  • 类MyClass的定义如下: class MyClass p...
  • 以下程序段是函数返回a所指数组中最大的值...
  • 已知枚举类型定义语句为: enum TokenNUM...