标题:wodeliuyan
只看楼主
23760639
Rank: 1
等 级:新手上路
帖 子:277
专家分:0
注 册:2005-5-13
 问题点数:0 回复次数:0 
wodeliuyan

Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click

Dim gisempire(50) As Short

gisempire(1) = Int(100 * Rnd(1)) List1.Items.Add(CStr(gisempire(1))) Dim i As Short Dim j As Short For i = 2 To 50 gisempirebbs: gisempire(i) = Int(100 * Rnd(1)) For j = 1 To i - 1 If gisempire(j) = gisempire(i) Then GoTo gisempirebbs End If Next List1.Items.Add(CStr(gisempire(i))) Next end sub

搜索更多相关主题的帖子: wodeliuyan 
2005-07-12 20:31



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




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

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