Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: C++ 中的对象破坏析 构函数检查 C++
我想要一个简单的程序来看看析构函数在 C++ 中是如何工作的?
我基本上不明白什么时候调用析构函数。