下面程序的结果是 #include<iostream.h> class A public: A( ) cout < < "construtA" < < end1; virtual ~A( ) cout < < "destructA" < < end1; ; class B:public A ; class C:public A ; class D:public B,public C ; void main( ) Dd; A: constructA B: destructA C: constructA D: constructA E: destructA F: destructA G: constructA H: constructA I: constructA J: destructA K: destructA L: destructA M: constructA N: constructA O: constructA P: constructA Q: destructA R: destructA S: destructA T: destructA
下面程序的结果是 #include<iostream.h> class A public: A( ) cout < < "construtA" < < end1; virtual ~A( ) cout < < "destructA" < < end1; ; class B:public A ; class C:public A ; class D:public B,public C ; void main( ) Dd; A: constructA B: destructA C: constructA D: constructA E: destructA F: destructA G: constructA H: constructA I: constructA J: destructA K: destructA L: destructA M: constructA N: constructA O: constructA P: constructA Q: destructA R: destructA S: destructA T: destructA
1