正如我们知道的: 通过new分配到heap中的对象,当对其delete,才会被析构; 分配在stack中的对象,当其离开作用域时被析构; 转载于:https://www.cnblogs.com/king-77024128/p/4726510.html