二重循环,显示下标越界
dim AG(),ABG(21, 21)AG = Array(0, 0.027815, 0.189065, 0.0793, 0.141239, 0.3325, 0.0885, 0.034369, 0.038953, 0.021, 0.256692, 0.281835, 0.332267, 0.366911, 0.289731, 0.337542, 0.383381, 0.427354, 0.469659, 0#, 0#)
For i = 1 To 21
For j = 1 To 21
ABG(i, j) = (AG(i) + AG(j)) / 2
Next j
Next i
AG()为一维数组,通过Array输入21个数值,为何显示j=22,且AG()下标越界