作者MOONRAKER (㊣乌笨秃,又笨又秃)
看板Visual_Basic
标题Re: [VB6 ] 请问位元的处理, 在 BASIC 里
时间Thu Jun 26 09:21:24 2008
※ 引述《dddddddddddd (叫我 d 大)》之铭言:
: VB 有没有什麽方法可以作位元偏移的运算,
: 像 C 里面的 >> 与 << 运算符号,
: 当我想要不透过除法来得到某一个 bit 的值,
在VB6是不可能的。VB6对这种运算的解决方法就是乘或除。
: 又, 有没有方法可以抓 16-bits integer 的高位元 ?
用 and 就可以了,VB6的and是both logical and arithmetic.
--
BATCH 1 (4/20) - 如何隐身 - SPAM - 英国杀人笑话 -
http://tinyurl.com/65vvbx
BATCH 2 (5/10) - 当众脱裤 - 主教 - 傻蛋奥运会 -
http://tinyurl.com/68grk7
BATCH 3 (6/14) - 买张床 - 切达大侠 - 伐木人之歌 -
http://tinyurl.com/3zpyx5
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
■ 蒙帝派松正体中文计画 ■ Spam-a-lot and enjoy the pythonesque delight!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.207.187