|
 
- 帖子
- 362
- 精華
- 0
- 威望
- 126
- 魅力
- 0
- 讚好
- 0
- 性別
- 男
|
3#
發表於 2005-6-19 06:50 PM
| 只看該作者
Originally posted by secretfj at 2005-6-19 06:37 PM:
+ S8 G% [+ g4 ~# \, j. R7 I4 _7 m有無人知點解?
4 i: h$ R" K G6 j( ^% r) eServer 的Backup Code?
3 M3 S* E- n. G% `; ]so funny, thanks a lot! $ ^) E1 T* u0 g, V1 S3 m: N4 ?
4 `5 W. \% X" s$ R- \好簡單, ICQ 應該係 Visual C++ 寫的 , 而係 Visual C++ 入面
' C, G D6 K2 H. JMaximum value for a variable of type "unsigned int" 係 4294967295 (0xffffffff)
- P' J/ |/ f- K% @# `; {% a9 x0 C. Z* d個 value 過左呢個 range 就會 overflow , 佢只會理最後個32bits 數 (即係好似返返轉頭 , 循環咁): K5 x7 s; T- e6 C, ]$ A% @9 O' A9 d
e.g.
; n" ^- y1 ^0 _$ Y" Y) u0 + 4294967295 = 4294967295 (max); U& ^! r- ~; R: m! G8 b
1 + 4294967295 = 0 + 4294967296 = 0 (because of overflow)7 a5 X2 u8 M* q; {. \' D( ]( Z/ \
and so on....
5 h+ h( W* ?' t; W$ P% h3 e% W& I/ F% d* R+ T( U$ ?2 b+ M/ h
[ Last edited by gaye on 2005-6-19 at 06:57 PM ] |
|