|
以下是引用触电在2006-10-19 21:46:28的发言:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
Aname=Array("老李","王懂","发叔","龙哥","小陈")
Aage=Array(56,45,51,48,35)
n=ubound(Aname)
response.write "未排序:"
for i=0 to n
response.write Aname(i)&":"&Aage(i)&"  "
next
response.write "<br>"
for i=0 to n-1
for j=i+1 to n
if Aage(i)<Aage(j)
t=Aage(i)
Aage(i)=Aage(j)
Aage(j)=t
str=Aname(i)
Aname(i)=Aname(j)
Aname(j)=str
end if
next
next
if request("rdscend")="yes" then
for k=n to 0 step -1
response.write "由小到大:"&Aname(k)&":"&Aage(k)&"  "
next
elseif request("rdscend")="yes" then
for l=0 to n
response.write "由小到大"&Aname(l)&":"&Aage(l)&"  "
next
end if
%>
<form action="c10_7_2.asp" method="post">
<input type="radio" name="rdscend" value="yes">
<input type="raido" name="rdscend" value="yes">
<% response.write "<br>" %>
<input type="submit" name="确定">
</form>
</body>
</html>
都YES了你还要两个单选按纽做什么?
把一个变成NO啊!~ |
|