enum AttributeType: unsigned long long
{
aa = 1,
bb = 2,
cc = 0x842AC1040000
};
int main()
{
DWORD64 bbbb = 0x842AC1040000;
cout <<"sizeof(AttributeType) "<< sizeof(AttributeType) << endl; // cout8
cout <<" sizeof(aa)"<< sizeof(aa) << endl; // cout 8
cout << "cc"<< cc << endl; // cout 0xC1040000
}
1.修改类型后是八位,但是不能表达64位数

浙公网安备 33010602011771号