标题:谁能帮我解释下:ASP二维数组
取消只看楼主
xuehao
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2011-1-18
结帖率:55.56%
已结贴  问题点数:20 回复次数:1 
谁能帮我解释下:ASP二维数组
<%
dim aa(2,2)
aa(0,0) = "00"
aa(0,1) = "01"
aa(1,0) = "10"
aa(1,1) = "11"
aa(2,1) = "21"
aa(2,2) = "22"
dim i,j
for i=0 to 2
 for j=0 to 2
response.write"aa(" & cstr(i) &","& cstr(j) &")=" &cstr(aa(i,j))
 next
next
%>
搜索更多相关主题的帖子: 二维 
2011-01-22 09:41
xuehao
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2011-1-18
得分:0 
我是初学者,还是不懂:
aa(0,0) = "00"
aa(0,1) = "01"
aa(1,0) = "10"
aa(1,1) = "11"
aa(2,1) = "21"
aa(2,2) = "22"
这些元素怎么排出来的,道理不懂,希望能详细解释下,还有哪个循环语句
dim i,j
for i=0 to 2
for j=0 to 2
response.write"aa(" & cstr(i) &","& cstr(j) &")=" &cstr(aa(i,j))
next
next
我需要你们帮忙,加我QQ:1192742894
2011-01-23 09:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331433-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.131636 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved