- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:
0 i8 W/ }; n1 i+ A有無人知點解?9 B: Q# I) l7 \3 {# L! T# Q
Server 的Backup Code?
& l L! \& ^ [' b1 jso funny, thanks a lot! z6 z, a% _5 p# R5 n7 ]9 r& T$ _. N. E n6 M5 h% n+ ^
好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面) }- Y& S7 B/ ~
Maximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff)
3 \/ L& O# \ l7 C3 ^2 H個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)! [4 L, K8 q" `# H. X* m, y
e.g.
, E/ ^9 R R l- _0 + 4294967295 = 4294967295 (max)
9 i7 p# h# [3 a, t1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow): R# `3 j# P* V" E# P; F& i
and so on....; g3 z2 Q; s4 J4 Q
+ V+ d, Z" Q7 Z3 g2 \
[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|