标题:[求助] NB 高手请……
只看楼主
vbmeng
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2004-12-24
 问题点数:0 回复次数:1 
[求助] NB 高手请……

Private Sub command1_Click() Dim i%, j%, t%

Dim a%(50), b%(50) WindowState = 2 Cls command1.Move 10000, 800 FontSize = 15 Randomize For i = 1 To 50

a(i) = Int(Rnd * 100 + 1) b(i) = i Next i For i = 1 To 49 For j = i + 1 To 50 If a(i) > a(j) Then t = a(i): a(i) = a(j): a(j) = t t = b(i): b(i) = b(j): b(j) = t End If Next j Print: Print Next i For i = 1 To 50 Print Format(b(i), "(!@@)"); Format(a(i), "!@@"); If i Mod 5 = 0 Then Print Next i End Sub 好晕 怎么都打不出来结果!!!!!!

搜索更多相关主题的帖子: For Print Next Dim 
2004-12-24 17:51
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
得分:0 

Private Sub command1_Click() Dim i%, j%, t%

Dim a%(50), b%(50) WindowState = 2 Cls command1.Move 10000, 800 FontSize = 15 Randomize For i = 1 To 50

a(i) = Int(Rnd * 100 + 1) b(i) = i Next i For i = 1 To 49 For j = i + 1 To 50 If a(i) > a(j) Then t = a(i): a(i) = a(j): a(j) = t t = b(i): b(i) = b(j): b(j) = t End If Next j Print: Print '这里打了好多换行,下面打印的东西全看不到,屏蔽这一行就可以了。 Next i For i = 1 To 50 Print Format(b(i), "(!@@)"); Format(a(i), "!@@"); If i Mod 5 = 0 Then Print Next i End Sub


天津网站建设 http://www./
2004-12-25 12:56



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




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

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