读卡器识别不出内存卡:这有个编程题希望高手帮我解决一下

来源:百度文库 编辑:高校问答 时间:2024/05/08 00:31:22
asp.net编程题,设有五个学生的平均成绩分别是80,78,91,62,88编写一个程序找出最低分和最高分,并在网页上显示出来

不好意思我不会.NET只能用ASP写了
<%
n=rs.RecordCount
Redim a(N-1)'定义个数组
k=0
while not rs.eof thn
a(k)=rs("") '从数据库中取出成绩
rs.movenext
k=k+1
wend
b=a(0) '水数
c=a(0) '大数
for i=1 to k-1
if a(i)>c then c=a(i)
if a(i)<b then b=a(i)
next

%>
小数为:<%=b%>大数为:<%=c%>