攻比瘦小的古代耽美:在VB中怎样判断数组中的最小数?
来源:百度文库 编辑:中科新闻网 时间:2024/07/06 15:57:31
在线等!@
在那里有这些算法资料下载啊?
在那里有这些算法资料下载啊?
dim a (1 to 10) as integer
dim temp as integer
for i=1 to a.lenth
if temp>a(i)
temp=a(i)
next
print temp
应该要读取数进行比较的,看一看好的排序算法吧
中科新闻网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:中科新闻网 时间:2024/07/06 15:57:31
dim a (1 to 10) as integer
dim temp as integer
for i=1 to a.lenth
if temp>a(i)
temp=a(i)
next
print temp
应该要读取数进行比较的,看一看好的排序算法吧