|
 
- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
1#
發表於 2005-6-19 06:50 PM
| 顯示全部帖子
Originally posted by secretfj at 2005-6-19 06:37 PM:
% i. u! c! n* G( w, e有無人知點解?
7 S: \3 X! K MServer 的Backup Code?
6 x; u9 z# i/ d' P( s6 Mso funny, thanks a lot! 8 m+ o, V: q8 `$ C( ` l" c Z |* b' |# `$ o7 i
好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面( t- j/ l' T# E
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff) 9 N, L6 ^. ~6 h% ~. [1 u
個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)
& m. ^% t3 H* p+ F6 Ee.g.
M1 P3 z; ~ T9 h8 r0 + 4294967295 = 4294967295 (max)% }# ?/ P1 l" }* r) |
1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)2 Y' j1 P& [) F: I1 F# X- V1 t+ {( |
and so on....
; y1 a) f, I3 E8 }" |+ Y8 S; b/ ?
* n- D; X, K0 T6 G[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|