填空题

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

【参考答案】

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

填空题
若下面程序运行时输出结果为:1,A,10.12,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;}
相关试题
  • 以下程序的执行结果是______。#incl...