Foxtable(狐表)用户栏目专家坐堂 → 数字对比软件开发


  共有7930人关注过本帖树形打印复制链接

主题:数字对比软件开发

帅哥哟,离线,有人找我吗?
pengjiam
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:187 积分:2763 威望:0 精华:0 注册:2011/7/30 21:27:00
  发帖心情 Post By:2013/2/24 17:37:00 [显示全部帖子]

Dim val1 As New List(Of Integer)
Dim val2 As New List(Of Integer)
Dim val3 As Integer
Dim s1 As String = ""
Dim s2 As String

For i As Integer = 0 To 999
    val1.add(rand.Next(100,999))
    val2.add(rand.Next(10000,99999))
Next
For i As Integer = 0 To 999
    val3 = cint(cstr(val2(i)).SubString(1,3))
    If val1.Contains(val3) Then
        s2=s2 & val2(i) & "," & val3 & " "
    End If
Next

msgbox(s2)


 回到顶部