如何将三个byte[]数组合并成一个?android
发布网友
发布时间:2022-09-10 12:00
我来回答
共2个回答
热心网友
时间:2024-11-25 00:31
dim A(100) as byte
dim B(200) as byte
dim C() as byte
...
sub Commnad1Click()
CombiByte
end sub
...
Sub CombiByte()
dim I as long
DIm L as long
Dim M as long
redim C(ubound(A)-lbound(A)+Ubound(B)-lbound(B)+2)
M=Lbound(A)
for I=0 to ubound(A)-lbound(A)
C(I)=A(I+M)
next
M=Lbound(B)
For L=0 to Ubound(B)-lbound(B)
C(L+I)=B(L+M)
next
end sub
这样就可以了
热心网友
时间:2024-11-25 00:31
定义一个足够大的数组,然后复制过去