设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 67|回复: 4
打印 上一主题 下一主题

[求助]没有提示错误的错误

[复制链接]
跳转到指定楼层
1#
发表于 2010-1-17 05:02:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<!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)&"&nbsp;&nbsp"
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)&"&nbsp;&nbsp"
next
elseif request("rdscend")="yes" then
for l=0 to n
response.write "由小到大"&Aname(l)&":"&Aage(l)&"&nbsp;&nbsp"
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>
2#
发表于 2010-1-17 05:02:52 | 只看该作者
ASP小鸟..望各位同仁指教
回复 支持 反对

使用道具 举报

3#
发表于 2010-1-17 05:02:56 | 只看该作者
以下是引用触电在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)&"&nbsp;&nbsp"
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)&"&nbsp;&nbsp"
next
elseif request("rdscend")="yes" then
for l=0 to n
response.write "由小到大"&Aname(l)&":"&Aage(l)&"&nbsp;&nbsp"
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啊!~
回复 支持 反对

使用道具 举报

4#
发表于 2010-1-17 05:03:00 | 只看该作者
问题解决了..谢拉
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-18 19:52 , Processed in 0.115083 second(s), 8 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表