2011年4月2日
摘要: //以下默认的结构成员对齐为8字节 The following sample shows how to the pack pragma to change the alignment of a structure. // pragma_directives_pack.cpp #include <st 阅读全文
posted @ 2011-04-02 11:20 zdleek 阅读(4) 评论(0) 推荐(0)
摘要: //测试VC++ 结构成员对齐的问题 by zdleek //一下结论通过VC2008编译测试得来 void TestStructMemberAlig() { #pragma pack(push, 8) struct MyStructure { double i1; char a1; char a2 阅读全文
posted @ 2011-04-02 11:10 zdleek 阅读(11) 评论(0) 推荐(0)