如何把1串16进制的字符串转成2进制并存放在一个16*16的数组里

DukerJava 主管  2007-12-03 04:54:29

例如:
" 01H 00H 01H 04H 01H 0FEH 01H 00H 01H 08H 03FH 0FCH 020H 08H 020H 08H 020H 08H 03FH 0F8H 020H 08H 020H 00H 020H 00H 020H 00H 040H 00H 080H 00H"
...全文
32 点赞 收藏 2
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
DukerJava 2007-12-04
a(i,j) = cbyte("&H" & b(i*15+j))
类型不匹配啊!

回复
Tiger_Zhao 2007-12-03
又是你,前面一帖还没结呢:http://topic.csdn.net/u/20071130/14/c17e043a-1a3a-43f3-926f-aca115d7f511.html
function Transform(byval s as string) as byte()
dim a(15,15) as byte, b as variant, i as long, j as long
b = split(replace(s," ",vbnullstring), "H")
for i=0 to 15
for j=0 to 15
a(i,j) = cbyte("&H" & b(i*15+j))
next
next
Transform = a
end function
回复
发动态
发帖子
VB基础类
创建于2007-09-28

7450

社区成员

VB 基础类
申请成为版主
社区公告
暂无公告