摘要: 文章转载自:http://blog.csdn.net/wanfustudio/archive/2006/05/02/705674.aspx1、什么是sizeof 首先看一下sizeof在msdn上的定义: The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (i... 阅读全文
posted @ 2010-03-08 11:21 一方净土 阅读(1373) 评论(0) 推荐(1) 编辑
摘要: 之前对sizeof的了解看来还是太片面了,上周末的迅雷面试的第一题就让我拿不准了,具体的面试题目等我总结完再开一帖,这里先总结一下sizeof的用法,文章是转的,不过很详细。转载自http://blog.csdn.net/wanfustudio/archive/2006/05/02/705681.aspx关键字:sizeof,字节对齐,多继承,虚拟继承,成员函数指针前向声明: sizeof,一个其... 阅读全文
posted @ 2010-03-08 11:19 一方净土 阅读(432) 评论(0) 推荐(0) 编辑