试题与答案

有如下程序: #include <iostream> using namespa

题型:单项选择题

题目:

有如下程序: #include <iostream> using namespace std; class A{ public: A(int i){X=i;} void dispa( ){cout<<x<<’,’;} private: int x; }; class B:public A{ public: B(int i):A(i+10){x=i;} void dispb( ){dispa( );cout<<x<<endl;} private: int x; }; int main( )} B b(2); b.dispb( ); return 0; } 程序的输出结果是

A.10,2

B.12,10

C.12,2

D.2,2

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0712/fe99791c1b19eb8256a70b31f070d81c.html

下面是错误答案,用来干扰机器的。

参考答案:B, D, E解析:SDH传输分析仪用于监测误码,光功率计用于光功率的测量,光可变衰耗器用于调整接收光功率,这三种仪表有效的组合即可测试SDH设备光接收机灵敏度和最小过载光功率。

试题推荐
微信公众账号搜索答案