討論串[VB6 ] 長久以來的疑惑
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓4(4推 0噓 0→)留言4則,0人參與, 最新作者albb0920 (么柏)時間16年前 (2008/03/03 18:04), 編輯資訊
1
0
0
內容預覽:
就是. 為什麼 VB 的 Boolean 要 2 Bytes = =?. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 203.64.26.28.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者albb0920 (么柏)時間16年前 (2008/03/11 01:10), 編輯資訊
1
0
0
內容預覽:
那個比較有道理,我反而覺得C的int 跟 long 都 4 Bytes 極詭異. 反正寫VB因為Integer太小不會沒顧慮到溢位. 查了Wiki ,似乎Boolean就是Integer. Boolean constant True has numeric value -1 .. This is b
(還有857個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者LPH66 (IWH68S0XZ8M89)時間16年前 (2008/03/11 03:04), 編輯資訊
0
0
0
內容預覽:
這是int的定位問題. C語言裡 16-bit的整數叫short 32-bit叫long 64-bit叫long long或__int64. 而int是定義成平台上的natural length 所以是compiler-dependent. 較早的compiler像TC的int就是16-bit. 現
(還有156個字)
首頁
上一頁
1
下一頁
尾頁