asp.net的for/next循环语句,
<%Dimarrdata(1,2)Diminti,intjAsIntegerarrdata(0,0)=12arrdata(0,1)=13arrdata(0,2)=14ar...
<%
Dim arrdata(1, 2)
Dim inti, intj As Integer
arrdata(0, 0) = 12
arrdata(0, 1) = 13
arrdata(0, 2) = 14
arrdata(1, 0) = 15
arrdata(1, 1) = 16
arrdata(1, 2) = 17
For inti = 0 To 1
For intj = 0 To 2
Response.Write(arrdata(inti, intj) & " ")
Next
Response.Write("<br>")
Next
%>
为什么显示的是12 13 14然后在换行15 16 17啊、、、
不是for循环这个条件For inti = 0 To 1
For intj = 0 To 2 下来,都在第一行的吗??? 展开
Dim arrdata(1, 2)
Dim inti, intj As Integer
arrdata(0, 0) = 12
arrdata(0, 1) = 13
arrdata(0, 2) = 14
arrdata(1, 0) = 15
arrdata(1, 1) = 16
arrdata(1, 2) = 17
For inti = 0 To 1
For intj = 0 To 2
Response.Write(arrdata(inti, intj) & " ")
Next
Response.Write("<br>")
Next
%>
为什么显示的是12 13 14然后在换行15 16 17啊、、、
不是for循环这个条件For inti = 0 To 1
For intj = 0 To 2 下来,都在第一行的吗??? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询