大家好,我的名字都是hibari我目前正在进行嵌套循环练习,我无法解决这个问题.....提前谢谢你,
'清除列表 ClearList()
'process an outer loop
For intOuterLoop As Integer = 1 To 5
'process a nested (inner) loop
For intInnerLoop As Integer 1 to 6
lstData.Items.Add(intOuterLoop.ToString & ", " & intInnerLoop.ToString)
Next
Next
End Sub
每次点击调试按钮我都会收到错误(语法错误)
答案 0 :(得分:0)
'process an outer loop
For intOuterLoop As Integer = 1 To 5
'process a nested (inner) loop
For intInnerLoop As Integer = 1 to 6
lstData.Items.Add(intOuterLoop.ToString & ", " & intInnerLoop.ToString)
Next
Next
End Sub