欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp實現(xiàn)取得數(shù)組中的最大值的代碼

 更新時間:2007年08月08日 11:30:12   作者:  
<%
'******************************
'函數(shù):GetMax(str)
'參數(shù):str,待處理的數(shù)字數(shù)組,以,分隔多了數(shù)字
'作者:阿里西西
'日期:2007/7/12
'描述:取得數(shù)組中的最大值
'示例:<%=GetMax("360,120,5,600,32")%>
'******************************
function GetMax(str)
num=split(str,",")
max=num(0)
for ii=0 to ubound(num)
if cint(num(ii))>cint(max) then max=num(ii)
response.write "num="&num(ii)&",max="&max&"<br />"
next
getmax=max
end function
%>

相關(guān)文章

最新評論