Re: [問題] sizeof struct
→
01/06 00:02,
01/06 00:02
→
01/06 09:46,
01/06 09:46
這種結果都可以下指令去調
#pragma 是個值得研究的東西
http://nopaste.csie.org/bdfc0
裡面的 struct Sxxx 內容都一樣
用 #pragma pack 去調 align 而已
dev-c 和 visual c 結果都一樣
還有這種東西..
__declspec(align(32)) struct Str1{
int a, b, c, d, e;
};
有興趣 MSDN 走一趟可以拿到很多相關資訊。
--
YouLoveMe() ? LetItBe() : LetMeFree();
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 180.177.76.142
※ 編輯: tropical72 來自: 180.177.76.142 (01/06 10:11)
※ 編輯: tropical72 來自: 180.177.76.142 (01/06 10:13)
→
01/06 10:18, , 1F
01/06 10:18, 1F
推
01/06 10:33, , 2F
01/06 10:33, 2F
討論串 (同標題文章)