• λ我爱Aspx >> Asp.Net >> 谢谢(hookee)兄,这代码我运行没问题,但我结合到排序函数中就没成功.帮我看下,谢谢
  • 谢谢(hookee)兄,这代码我运行没问题,但我结合到排序函数中就没成功.帮我看下,谢谢

  • :aspxer  Դ:csdn  :2007-7-6 2:45:18  ؼ:
  • 这段是数组排序代码

    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下没啥输出,为何?