怎么用VB表示二维数组

2024-12-27 16:22:56
推荐回答(3个)
回答1:

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

回答2:

a(j,k)要这样

回答3:

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