校规校纪考试的意义:哪位高手啊来帮忙解答这个C++填空题啊 急~~~

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 06:11:22
Creating B
end of B
end of A
#include<iostream.h>
class A
{
public:
A(){}
______ {cout<<"end of A"<<endl;}
};
class B:public A
{
public:
B(){____________}
~B(){cout<<"end of B"<<endl;}
};
void main()
{
B b;
}
要正确的哦!!

分别填上就可以了
~A()
cout<<"Creating B"<<endl;

~A()
cout<<"Creating B"<<endl;