1.写法: ~className{ //函数主体 } 2.一个类只能有一个析构函数 3.return后的代码不执行 4.析构函数用于关闭、销毁等。 转载于:https://www.cnblogs.com/wu-tong/p/5747554.html