W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
#include
using namespace std; int main() { int myInt = 4294967292; unsigned int myUInt = 4294967292; short int mySInt = 65532; unsigned short int myUSInt = 65532; long long int myLInt = 18446744073709551612ULL; unsigned long long int myULInt = 18446744073709551612ULL; cout << " 大小: " << 8*sizeof(myInt) << " 位 值: " << myInt << "\n"; cout << " 大小: " << 8*sizeof(myUInt) << " 位 值: " << myUInt << "\n"; cout << " 大小: " << 8*sizeof(mySInt) << " 位 值: " << mySInt << "\n"; cout << " 大小: " << 8*sizeof(myUSInt) << " 位 值: " << myUSInt << "\n"; cout << " 大小: " << 8*sizeof(myLInt) << " 位 值: " << myLInt << "\n"; cout << " 大小: " << 8*sizeof(myULInt) << " 位 值: " << myULInt << "\n"; return 0; }