- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:1 w* V: c/ `8 A0 e
有無人知點解?
/ d8 K; }9 E# j3 P1 Z2 |% DServer 的Backup Code?2 _" {, ?) p0 P# H. {4 Q5 T e% e
so funny, thanks a lot! , q: Y6 L5 `0 n# A) H) P ~
4 w1 n. z y* d4 X \* y好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面
1 z& W: E. _2 b7 XMaximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff) + @9 z! O X/ S3 S% Q% s
個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)8 Z, n5 }' h0 F0 {$ A& k; ~1 j3 x
e.g.
' Z" {1 @% ]; {0 + 4294967295 = 4294967295 (max)
+ R2 V9 a1 X. n1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow), K* H2 @, b, ]$ a& P
and so on....% C# y( o0 M3 S/ ~6 F
0 @/ S6 s$ P/ _5 U[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|