asp 实现的冒泡排序程序
更新时间:2009年11月07日 00:10:59 作者:
asp 实现的冒泡排序程序程序代码,需要的朋友可以参考下。
复制代码 代码如下:
arr = array(12,52,14,43,24,58,15,64,24,57,17,56,45)
arrLen = ubound(arr)
for i=0 to arrLen-1
for j = 0 to (arrlen -1)-i
if arr(j)>arr(j+1) then
temp = arr(j)
arr(j)= arr(j+1)
arr(j+1) = temp
end if
next
next
for each l in arr
response.Write l&"<br>"
next
相关文章
IIS访问ASP页面时报错The requested resource is in use.的解决办法
IIS访问ASP页面时报错The requested resource is in use.的解决办法...2007-04-04


最新评论