 
- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:' ]/ @+ Z5 P+ ?' g6 w6 n
有無人知點解?
6 x! B& p9 O$ CServer 的Backup Code?+ w+ ~: U2 C( n, W/ N# p
so funny, thanks a lot! * t" V c" S- _3 [4 |6 x5 v
( L' p Y: ^* t u, v! s, B好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面
- a, w2 N4 I. q. e7 H* ^! } f' E, {, lMaximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff) ( s4 {& C$ ^3 V9 k& Q
個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁)
4 {, k- @$ A( w6 y% A5 Te.g.1 Z( W5 F1 U- K' r5 d6 t: x7 `
0 + 4294967295 = 4294967295 (max)
* K8 S$ ` D7 E7 w6 G1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)& {* R) v# U8 I+ G) n! l/ [
and so on....
' ?% c/ G& d6 w7 R
/ D' s1 C( q" s[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|