整形范围记忆和注意事项
longint(long):-2^31~2^31 -1
2^31: 2.1*10^9 十位数,首位是2,次位是1
word(unsigned long):0~2^32
2^32=2^31 * 2: 4.2*10^9 十位数,首位是4,次位是2
int64(long long):-2^63~2^63
2^63=( 2^31 )^2 * 2: 9._*10^18 十九位,首位是9
qword(unsigned long long):-2^64~2^64 -1
2^64=2^63 * 2: 1._*10^19 二十位,首位是1
pascal:%d %d %ld %ld
c:%ld %lu %lld %llu
若忘记了,win+r calc 来计算
注意:
1.长整形不能作循环运算:可以while(t>0) { t=t-1; ...}
2.整数运算最多在在长整型int64范围内