会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
2023年6月21日
不要用基指针删除派生对象数组
摘要: 看陈皓的博客后,发现这一点,以前都没注意过,也是因为没这样用过 陈皓叔 R.I.P... 见下面代码: #include <iostream> class Base { int b; public: virtual ~Base() { std::cout << "B::~B()" << std::e
阅读全文
posted @ 2023-06-21 16:23 strive-sun
阅读(12)
评论(0)
推荐(0)
编辑
公告