标题:[求助]怎么找出5*5数组中最大数的位置
只看楼主
amingo
Rank: 1
等 级:新手上路
帖 子:90
专家分:0
注 册:2004-8-27
 问题点数:0 回复次数:1 
[求助]怎么找出5*5数组中最大数的位置
怎么找出5*5数组中最大数的位置
搜索更多相关主题的帖子: 大数 位置 
2005-06-12 22:57
loveve
Rank: 4
等 级:业余侠客
威 望:1
帖 子:452
专家分:213
注 册:2005-4-11
得分:0 
dim a(1 to 5,1 to 5) as integer,maxnumber as ineger,c as integer ,d as integer
maxnumber=a(1,1)
for i=1 to 5
     for j=1 to 5
         if (i,j)>maxnumber then
               maxnumber=a(i,j)
               c=i
               d=j
         endif
     next j
next i
label1.caption="5*5数组中最在数的位置是:a(" & c &"," & j & ")"
   

五月的雪
2005-06-13 18:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-20731-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.527194 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved