 
- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:
% S0 h; Q0 ~- `3 ]4 Z有無人知點解?( ]' x3 b8 x6 o0 u. G" p
Server 的Backup Code?
3 [" V2 j. V" [: I- g# ?so funny, thanks a lot! 8 u* j: p9 E1 f( }7 |& L- }9 w
; T+ |% m( N; k9 `+ b好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面/ H0 O9 F G0 e3 W" ^8 ^4 T0 Z. E! ]
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff) # Y7 i6 ~6 L) ]/ F/ j: V
個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)
* J0 D7 _, ?# l: [1 }( g, ~e.g.
5 n) J- c; f7 g3 [6 S) [0 + 4294967295 = 4294967295 (max)
, g7 Z U- y' Q5 a, Z3 Q( j' V1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)
7 a( u6 x, q9 f% f2 l0 `and so on....9 ~% {9 d: |6 V% t' r; U0 \
6 v) I+ S" ?- s0 H5 G[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|