#include <iostream>
using namespace std;
struct bit
{ int a:3;
int b:2;
int c:3;
};
int main(int argc,char *argv[])
{
bit s;
char *c = (char*)&s;
*c = 0x99;
cout << s.a <<endl<<s.b<<endl<<s.c<<endl;
return 0;
}
- 2008-01-05 20:24
- 浏览 837
- 评论(1)
- 论坛回复 / 浏览 (1 / 475)
- 分类:非技术