摘要: class a{ public: ~a(){cout<<"a"<<endl; } class b:public a{ public: ~b(){cout<<"b"<<endl; } void main(){ shared_ptr A; { shared_ptr B(new b());//智能指针内部 阅读全文
posted @ 2023-04-25 14:27 ecnu_lxz 阅读(91) 评论(0) 推荐(0) 编辑