|
 
- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:3 M9 ^1 ?5 y% U m; k2 h: e
有無人知點解?' r/ K; p. y9 b- P
Server 的Backup Code?* Y Z" D* O/ l, ]" { Z' q3 r. q8 ]! e N
so funny, thanks a lot! % n/ E# B9 o# b7 \6 F
; c3 x! H9 P; P% R% p好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面8 ~& M! f1 z6 X, i: J+ Z; @& M9 m
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff)
8 m8 M* @: |( t+ f) R4 ~個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)( v K6 U1 j8 e& `
e.g.
$ l% t2 e$ k$ E0 + 4294967295 = 4294967295 (max)
9 ~1 |7 i3 u7 T, O7 t1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)
# Z5 D1 x$ A5 c# k- b0 \6 ?and so on....- a# I( i; N5 P, M, k+ N
1 M7 R2 K- `; E1 X
[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|