- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:9 b% X" t$ k& i5 [0 ^5 b
有無人知點解?, T& U- a7 M% F# Z h3 c
Server 的Backup Code?$ [; a. G5 O9 b/ R
so funny, thanks a lot! # c) F7 A! B9 E8 `2 H# g% g
- O, [4 [6 w1 R( f好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面) J [2 n/ }5 ?! p" i
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff)
: H8 i3 b9 t6 o2 _* o& X個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)' r0 D$ h3 i% v; H& y, r1 ?
e.g.
" _$ Z6 P/ m! R0 N2 s; q0 + 4294967295 = 4294967295 (max)& h$ G" o/ c# e. s; W3 L, n; s
1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)/ o! U$ W) {3 T0 x
and so on....
6 n5 p$ s# h0 M1 s+ S1 `. o. p" A' _' w* K$ X
[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|