#include
class A {
public:
char a[3];
};
#pragma pack(2)
class B {
char a;
class A a3;
class A b3;
class A c3;
};
#pragma pack(2)
class B1 {
static char a;
class A a3;
class A b3;
class A c3;
};
int main()
{
cout << sizeof(B) < cout << sizeof(A) < cout << sizeof(B1) < return 0;
}
阅读(801) | 评论(0) | 转发(0) |