你定义的变量a是一个变量,应该定义成数组啊. 另外要考虑a(0)的问题,你是想使用a(0)~a(6)这七个分量还是想使用a(1)~a(7)这七个分量.
Dim a, i% a=array(1,2,3,4,5,6,7) For i =Lbound(a) to Ubound(
1个回答
相关问题
-
a=1to3 i=1toa c=a(i,ubound(a,2)) for k=ubound(a,2)-1to1 step
-
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
-
a = array(1,2,3,4,5):for k = 1 to 4:s = s + a(k)中的s = s + a(
-
dim m(5,5),s(5) for i=1 to 5 s(i)=0 for j=1 to 5 m(i,j)=i+j
-
Sub stick()Dim i As IntegerDim j As IntegerFor i = 1 To 7For
-
A1(1,1) A2(2,-4) A3(3,4) A4(4,-2) A5(5,7) A6(6,-3/4)A7(7,10)
-
VB题 a为?for i=1 to3 for j=i to3
-
求向量组(I)a1=(1,1,-1,1),a2=(3,2,-4,4),a3=(2,3,-4,5),a4=(5,4,-6,
-
6、 有如下程序 for m=1 to 4 a=0 for j=1 to 5 a=1 for k=1 to 6 a=a+
-
for k=1 to 4 for i=1 to 4 if a(i)=b(k) c(k)=i end end end 这个