我爱Aspx >> Asp.Net >> 谢谢(hookee)兄,这代码我运行没问题,但我结合到排序函数中就没成功.帮我看下,谢谢这段是数组排序代码
google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";
<%
dim arr(3,3),temp(2)
dim i,temp0,col
arr(0,0) = "0023"
arr(0,1) = "元素2"
arr(0,2) = "1.34"
arr(1,0) = "0003"
arr(1,1) = "元素5"
arr(1,2) = "1.05"
arr(2,0) = "0014"
arr(2,1) = "元素1"
arr(2,2) = "0.02"
function test(col)
for i = 0 to 2 "数组上限
if arr(i,col) < arr(i+1,col) then
temp(0) = arr(i+1,0)
arr(i+1,0) = arr(i,0)
arr(i,0) = temp(0)
temp(1) = arr(i+1,1)
arr(i+1,1) = arr(i,1)
arr(i,1) = temp(1)
temp(2) = arr(i+1,2)
arr(i+1,2) = arr(i,2)
arr(i,2) = temp(2)
end if
next
test = arr
end function
call test(0)
response.write "<table border="1">"
Ҷƪл˵?
这个代码我在xp sp2下没啥输出,..[07-06]
不知道还有没有人在啊 我又有问题..[07-06]
JS[07-06]
ASP超时,我怎么写才能实现这个效..[07-06]
怎样用ASP程序插入新的Access数据..[07-06]
关于定时跳转的问题[07-06]
有没有界面漂亮一点的网站,请各位..[07-06]
如何实现隐藏层渐现渐失?[07-06]
[求助]请问这张二叉树图该如何找..[07-06]
如何将String类型转化为Timestam..[07-06]