- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:" }8 D* R/ U! L2 o
有無人知點解?1 ?$ o+ g9 t4 _# m0 g
Server 的Backup Code?
7 a5 S4 H" t2 M6 u, V8 ^so funny, thanks a lot! ' C! Q, ^) `5 |8 t
) K8 K9 `* h% r6 V/ J好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面" ]0 ^; N/ S( d$ T$ x9 s8 x2 t5 V
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff)
! x% S9 I( Q* o5 b, m個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁). k' Y4 V7 F( ^
e.g.* n* z* g! \+ r# g. V
0 + 4294967295 = 4294967295 (max)
5 ]3 l; x% k' L! d6 n8 @1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)
2 [9 ]9 P) g$ Z% L+ tand so on....! {" n: z" Z5 n8 W7 u& j4 u# L
9 Q. P! K T3 n3 F
[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|