Chinaunix
标题:
struct
[打印本页]
作者:
dutysmart
时间:
2013-07-23 21:35
标题:
struct
struct bit{
int a;
int b;
int c;
};
int main(int argc, char *argv[])
{
bit s;
char *c = (char*)&s;
*c = 0x99;
cout << s.a << endl;
cout << s.b << endl;
cout << s.c << endl;
}
作者:
file3
时间:
2013-07-25 21:21
什么系统?linux , windows or unix?
作者:
lin5161678
时间:
2013-07-25 21:50
全部未定行为 全部渣渣
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2