unsigned short a;short int b=-1;a=b;cout<<"a="<<a<<endl;
最后显示的是a =65535这是为什么?
无符号整型的意思是所有数值都是大于等于0的,不存在负数。-1和65535在内存中都是0xFFFF