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位数

 

posted on 2019-10-11 11:03  轻于飞  阅读(526)  评论(0)    收藏  举报