会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Ajanuw
做自己的King
博客园
首页
管理
2021年6月5日
c++ 智能指针 shared_ptr 在多态上的使用
摘要: #include <iostream> #include <memory> using namespace std; class Base { public: virtual ~Base() = default; /* 使其多态 */ }; class A : public Base { publi
阅读全文
posted @ 2021-06-05 20:55 Ajanuw
阅读(1016)
评论(0)
推荐(0)