这让我疯狂了好几天.以下为什么不工作?
Run Code Online (Sandbox Code Playgroud)Dim arr(3, 3) As Integer For y As Integer = 0 To arr.GetLength(0) - 1 For x As Integer = 0 To arr.GetLength(y) - 1 arr(y, x) = y + x Next Next
另外,如果阵列看起来像这样呢?
{ {1, 2, 3},
{4, 5, 6, 7, 8, 9, 9, 9},
{5, 4, 3, 2}
}
Run Code Online (Sandbox Code Playgroud)