析构函数是在程序结束之前,才会被执行。
class Program { ~Program() { } }
析构函数一般用于帮助我们释放资源。
19.析构函数
原文:https://www.cnblogs.com/lz32158/p/12903004.html