虚函数析构函数(内存泄漏)(12)
原创
©著作权归作者所有:来自51CTO博客作者XYG_XT的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
虚析构函数(√)、纯虚析构函数(√)、虚构造函数(X)
<br />一. 虚析构函数<br />我们知道,为了能够正确的调用对象的析构函数,一般要求具有层次结构的顶级类定义其析构函数为虚函数。因为在delete一个抽象类指针时候
class delete 编译器 function gcc -
Android怎么在flagment里面写activity
一.Flag标志位在阅读源码的时候经常发现有一些标志属性使用一些位操作来判断是否具有该标志,增加标志或者去除标志。如:为什么要使用16进制呢?为何不使用十进制0,1,2...?原因是因为这样就可以方便的用位运算来表示共同具有某些属性或者直接判断是否具有某个属性。上面这句话我们稍微来分析一下。拿文件的权限来分析一下,我们知道文件有三个权限:读,写,执行。分别用4 , 2 , 1来表示,这样一来就可以
Android flag 标志位 addFlags (int flags) setFlags (int flags) 数据