從標題主要不言自明,試圖在控制檯中顯示此數組。如何使多維數組顯示vb.net中的所有值?
Sub Array()
Dim board(5, 5) As String
board(1, 1) = "-"
board(1, 2) = "|"
board(1, 3) = "-"
board(1, 4) = "|"
board(1, 5) = "-"
board(2, 1) = "-"
board(2, 2) = "|"
board(2, 3) = "-"
board(2, 4) = "|"
board(2, 5) = "-"
board(3, 1) = "-"
board(3, 2) = "|"
board(3, 3) = "-"
board(3, 4) = "|"
board(3, 5) = "-"`
答案是不言自明的:使用循環 – Plutonix
我對編碼非常認真,所以我沒有真正覺得它不言自明 –