摘要: #include using namespace std; int main(void){ struct test2 { char a:2; char b:2; int c:2; char d:2; }t2; memset(&t2, 0, sizeof(t2)); t2.a = 3; t2.b = 2; t2.c = 3; t2.d = 3; char *p = (char*)&t2; ... 阅读全文
posted @ 2013-09-09 16:23 helloweworld 阅读(275) 评论(0) 推荐(0) 编辑