
哪位高手啊来帮忙解答这个C++填空题啊 急~~~
CreatingBendofBendofA#include<iostream.h>classA{public:A(){}______{cout<<"endofA"<<en...
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;
}
要正确的哦!! 展开
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;
}
要正确的哦!! 展开
2个回答
展开全部
分别填上就可以了
~A()
cout<<"Creating B"<<endl;
~A()
cout<<"Creating B"<<endl;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询