A(i,j)是表示一个二维数据,你直接写A(i,j)=15肯定不行,因为i,j都是变量,没有附值,初始值都是0,可以这样写。
dim i,j as integer
dim a(3,3) as integer
for i=0 to 3
for j=0 to 3
a(i,j)=15
next j
next i
a(j,k)要这样
dim i,j as integer
dim a(3,3) as integer
for i=0 to 3
for j=0 to 3
a(i,j)=15
next
next