填空题
有如下类声明:
class MyClass
{
int i;
private: int j;
protected: int k;
public: int m, n;
}; 其中,私有成员的数量为 【9】 。
【参考答案】
B
热门
试题
填空题
若下面程序运行时输出结果为1,A,10.12,B,3.5#include <iostream>using namespace std;int main(){void test(int, char, doubie 【8】 );test(1, ’A’, 10.1 );test(2, ’B’);return 0;}void test(int a, char b, double c){cout<<a<<’,’<<b<<’,’<<c<<endl;}