摘要: 一、Visual Studio环境、Keil环境#pragma pack (1)二、Linux环境gcc#define PACKED __attribute__((packed))struct PACKED Gprs{unsigned shorthead;unsigned charflag;};typedef struct _UsrPhrase{ char key; int x;} __attribute__((packed)) UsrPhrase;struct __attribute__((packed)) GprsWeight{ unsigned short head; unsigned. 阅读全文
posted @ 2012-03-15 09:47 虚幻 阅读(828) 评论(0) 推荐(0) 编辑