24-#pragma once #pragma pack()

#pragma once #pragma pack() 注:gcc 編譯器不支持8字節對齊,則用4字節對齊。 sizeof(s2) = 20(4字節對齊) sizeof(s2) = 24(8字節對齊)
相關文章
相關標籤/搜索