【单选题】下面程序的结果是 #include<iostream.h> class A { int a public: A( ) :a(1) {} void showa ( ) {cout < < a} } class B { int a public: B( ) :a(2) {} void showa( ) {cout < < a} } class C: public A, public B { t a p...
【单选题】下面程序的结果是 #include<iostream.h> class A { public: A( ) {cout<<'construtA'<<endl;} virtual~A( ) {cout<<'destructA'<<endl;}}; class B:public A {}; class C:public A {}; c
【单选题】下面程序的结果是 #include<iostream.h> class A { public: A( ) {cout<<'construtA'<<endl;} virtual~A( ) {cout<<'destructA'<<endl;}}; class B:public A {}; class C:public A {}; class D:public B,public C {}; void m...
【单选题】下面程序的结果是 #include<iostream.h> class A { public: A(){cout<<'construtA' <<endl;} virtual ~A() {cout << 'destructA' <<endl;}}; class B:public A { }; class C:public A { }; class D:public B,public C { }; v...