- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:" p4 y* J5 _% l1 x
有無人知點解?
) P% s* g9 }0 C8 W: M6 o) wServer 的Backup Code?$ @, J' h, n, n0 x8 `$ f* C
so funny, thanks a lot! $ K0 c+ s( R- w0 r8 u
# N f$ B) k+ J0 D. G! M# O
好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面- q# J# Z3 a( i( U2 ]. ~" U! ~
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff) * Y8 C5 j; I, g, s2 _; F; P
個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)
5 f9 t4 w( s& X" g9 |# p# z( A/ K. Q( ^e.g.* d- x# q" ^6 `" s) F
0 + 4294967295 = 4294967295 (max)
! y6 k- L1 J4 f' w) c7 @1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)
4 U) m. T# x1 p. Uand so on....$ l* m# a: |' y! S
: s2 S) Q5 v5 O[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|