做个记录,今天看了两篇文章,终于弄明白了sizeof()是如何计算变量的长度了 5分钟搞定内存字节对齐 http://blog.csdn.net/hairetz/article/details/4084088 编译器字节对齐问题 http://csweapon.diandian.com/post/2011-08-26/4372667