asp 實現(xiàn)的冒泡排序程序
更新時間:2009年11月07日 00:10:59 作者:
asp 實現(xiàn)的冒泡排序程序程序代碼,需要的朋友可以參考下。
復(fù)制代碼 代碼如下:
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
相關(guān)文章
實用301轉(zhuǎn)向到另一域名相應(yīng)頁面的asp代碼
據(jù)說,多域名同網(wǎng)站會被認為內(nèi)容重復(fù),不利于搜索引擎中的排名。比較好的做法是,指定一個主域名,其它域名都轉(zhuǎn)向到此域名。2008-09-09
IIS訪問ASP頁面時報錯The requested resource is in use.的解決辦法
IIS訪問ASP頁面時報錯The requested resource is in use.的解決辦法...2007-04-04

