摘要: VC6.0中的对齐方式:class X{ public: double a; float b; short c; char d; };由于double占8Byte,float占4Byte,int占4Byte,short占2Byte,char占1Byte,在VC6.0中按照最大字节数进行对齐,sizeof(X)=16class X{ public:float ... 阅读全文
posted @ 2014-08-14 09:22 zzuzmy 阅读(123) 评论(0) 推荐(0) 编辑