- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:
: X d) A: N* I& g4 e; u2 [5 h有無人知點解?. e) G4 Q( E j" r% l- ^
Server 的Backup Code? Y A6 W- C: x1 x+ ~/ X5 H5 B, P
so funny, thanks a lot! + b' A9 f3 m( B3 |4 b; b
% {+ ~# |8 C b+ {6 M好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面; n2 C; H/ f' ` y9 g- p
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff) / {2 U) N. Q: O4 ?4 x( B0 [, z
個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)2 h5 K, i ?. v2 w' K
e.g.
) E# ?9 y( c% \8 K$ w8 y0 + 4294967295 = 4294967295 (max) \$ l* H7 x. n' v8 B
1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)( J a" R# H# Q' `. X& c1 M
and so on....
& P6 {0 j4 |5 B" C0 T8 N, A$ e7 A: n6 H% d: z! u. {$ J% N. z
[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|