试题与答案

若有以下程序: #include <iostream> using namesp

题型:单项选择题

题目:

若有以下程序: #include <iostream> using namespace std; class Base { private:int a,b; public:Base(int x, int y){ a=x; b=y;}void show(){ cout<<a<<", "<<b<<end1;} }; class Derive : public Base { private:int c, d; public:Derive(int x,int y, int z,int m):Base(x,y){ c=z; d=m;}void show(){ cout<<c<<", "<<d<<end1;} }; int main () {Base b(50,50),*pb;Derive d(10,20,30, 40);pb=&d;pb->show ();return 0; } 招待程序后的输出结果是( )。

A.10,20

B.30,40

C.20,30

D.50,50

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2022/0122/8bc34b194228fbcc92b09f6c21df906c.html

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

参考答案:对解析:本题考查我国证券业加入WTO后对外开放的内容:根据我国政府对WTO的承诺,加入3年内,中外合营证券公司可以(不通过中方中介)从事A股的承销,从事B股和H股、政府和公司债券的承销和交易,以及发...

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