题目内容
#include using namespace std;class A{public:A(){ cout <<"The A object is created\n"; }~A(){ cout << "The A object is destroyed\n"; }};class B{public:B(){ cout << "The B object is created\n"; }~B(){ cout << "The B object is destroyed\n"; }private:A a;};int main(){B b;return 0;}what is the output?
查看答案
搜索结果不匹配?点我反馈
更多问题