亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? module2.bas

?? 超級大樂透縮水選號器 Ver1.0 一款很專業
?? BAS
字號:
Attribute VB_Name = "Module2"
'****************************************************************************
'人人為我,我為人人
'枕善居收藏整理
'發布日期:2007/12/17
'描    述:明發-超級大樂透縮水選號器 Ver1.0
'網    站:http://www.Mndsoft.com/  (VB6源碼博客)
'網    站:http://www.VbDnet.com/   (VB.NET源碼博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代碼別忘記給枕善居哦!
'****************************************************************************
Option Explicit
Global Const ZERO = 0
Global Const ASCENDING_ORDER = 0
Global Const DESCENDING_ORDER = 1

Global gIterations

Sub BubbleSort(MyArray(), ByVal nOrder As Integer)
Dim Index
Dim TEMP
Dim NextElement

    NextElement = ZERO
    Do While (NextElement < UBound(MyArray))
        Index = UBound(MyArray)
        Do While (Index > NextElement)
            If nOrder = ASCENDING_ORDER Then
                If MyArray(Index) < MyArray(Index - 1) Then
                    TEMP = MyArray(Index)
                    MyArray(Index) = MyArray(Index - 1)
                    MyArray(Index - 1) = TEMP
                End If
            ElseIf nOrder = DESCENDING_ORDER Then
                If MyArray(Index) >= MyArray(Index - 1) Then
                    TEMP = MyArray(Index)
                    MyArray(Index) = MyArray(Index - 1)
                    MyArray(Index - 1) = TEMP
                End If
            End If
            Index = Index - 1
            gIterations = gIterations + 1
        Loop
        NextElement = NextElement + 1
        gIterations = gIterations + 1
    Loop

End Sub

Sub Bucket(MyArray(), ByVal nOrder As Integer)
Dim Index
Dim NextElement
Dim TheBucket

    NextElement = LBound(MyArray) + 1
    While (NextElement <= UBound(MyArray))
        TheBucket = MyArray(NextElement)
        Index = NextElement
        Do
            If Index > LBound(MyArray) Then
                If nOrder = ASCENDING_ORDER Then
                    If TheBucket < MyArray(Index - 1) Then
                        MyArray(Index) = MyArray(Index - 1)
                        Index = Index - 1
                    Else
                        Exit Do
                    End If
                ElseIf nOrder = DESCENDING_ORDER Then
                    If TheBucket >= MyArray(Index - 1) Then
                        MyArray(Index) = MyArray(Index - 1)
                        Index = Index - 1
                    Else
                        Exit Do
                    End If
                End If
            Else
                Exit Do
            End If
            gIterations = gIterations + 1
        Loop
        MyArray(Index) = TheBucket
        NextElement = NextElement + 1
        gIterations = gIterations + 1
    Wend

End Sub

Sub Heap(MyArray())
Dim Index
Dim Size
Dim TEMP

    Size = UBound(MyArray)
    
    Index = 1
    While (Index <= Size)
        Call HeapSiftup(MyArray(), Index)
        Index = Index + 1
        gIterations = gIterations + 1
    Wend

    Index = Size
    While (Index > 0)
        TEMP = MyArray(0)
        MyArray(0) = MyArray(Index)
        MyArray(Index) = TEMP
        Call HeapSiftdown(MyArray(), Index - 1)
        Index = Index - 1
        gIterations = gIterations + 1
    Wend

End Sub
 

Sub HeapSiftdown(MyArray(), M)
Dim Index
Dim Parent
Dim TEMP

    Index = 0
    Parent = 2 * Index

    Do While (Parent <= M)
        
        If (Parent < M And MyArray(Parent) < MyArray(Parent + 1)) Then
            Parent = Parent + 1
        End If

        If MyArray(Index) >= MyArray(Parent) Then
            Exit Do
        End If

        TEMP = MyArray(Index)
        MyArray(Index) = MyArray(Parent)
        MyArray(Parent) = TEMP
        
        Index = Parent
        Parent = 2 * Index

        gIterations = gIterations + 1
    Loop
End Sub

Sub HeapSiftup(MyArray(), M)
Dim Index
Dim Parent
Dim TEMP

    Index = M
    Do While (Index > 0)
        Parent = Int(Index / 2)

        If MyArray(Parent) >= MyArray(Index) Then
            Exit Do
        End If
        
        TEMP = MyArray(Index)
        MyArray(Index) = MyArray(Parent)
        MyArray(Parent) = TEMP

        Index = Parent
        gIterations = gIterations + 1
    Loop
    
End Sub

Sub Insertion(MyArray(), ByVal nOrder As Integer)
Dim Index
Dim TEMP
Dim NextElement
    
    NextElement = LBound(MyArray) + 1
    While (NextElement <= UBound(MyArray))
        Index = NextElement
        Do
            If Index > LBound(MyArray) Then
                If nOrder = ASCENDING_ORDER Then
                    If MyArray(Index) < MyArray(Index - 1) Then
                        TEMP = MyArray(Index)
                        MyArray(Index) = MyArray(Index - 1)
                        MyArray(Index - 1) = TEMP
                        Index = Index - 1
                    Else
                        Exit Do
                    End If
                ElseIf nOrder = DESCENDING_ORDER Then
                    If MyArray(Index) >= MyArray(Index - 1) Then
                        TEMP = MyArray(Index)
                        MyArray(Index) = MyArray(Index - 1)
                        MyArray(Index - 1) = TEMP
                        Index = Index - 1
                    Else
                        Exit Do
                    End If
                End If
            Else
                Exit Do
            End If
            gIterations = gIterations + 1
        Loop
        NextElement = NextElement + 1
        gIterations = gIterations + 1
    Wend

End Sub

Sub QuickSort(MyArray(), L, R)
Dim I, J, X, Y

    I = L
    J = R
    X = MyArray((L + R) / 2)
        
    While (I <= J)
        While (MyArray(I) < X And I < R)
            I = I + 1
        Wend
        While (X < MyArray(J) And J > L)
            J = J - 1
        Wend
        If (I <= J) Then
            Y = MyArray(I)
            MyArray(I) = MyArray(J)
            MyArray(J) = Y
            I = I + 1
            J = J - 1
        End If
        gIterations = gIterations + 1
    Wend

    If (L < J) Then Call QuickSort(MyArray(), L, J)
    If (I < R) Then Call QuickSort(MyArray(), I, R)

End Sub

Sub Selection(MyArray(), ByVal nOrder As Integer)
Dim Index
Dim Min
Dim NextElement
Dim TEMP

    NextElement = 0
    While (NextElement < UBound(MyArray))
        Min = UBound(MyArray)
        Index = Min - 1
        While (Index >= NextElement)
            If nOrder = ASCENDING_ORDER Then
                If MyArray(Index) < MyArray(Min) Then
                    Min = Index
                End If
            ElseIf nOrder = DESCENDING_ORDER Then
                If MyArray(Index) >= MyArray(Min) Then
                    Min = Index
                End If
            End If
            Index = Index - 1
            gIterations = gIterations + 1
        Wend
        TEMP = MyArray(Min)
        MyArray(Min) = MyArray(NextElement)
        MyArray(NextElement) = TEMP
        NextElement = NextElement + 1
        gIterations = gIterations - 1
    Wend

End Sub

Sub ShellSort(MyArray(), ByVal nOrder As Integer)
Dim Distance
Dim Size
Dim Index
Dim NextElement
Dim TEMP

    Size = UBound(MyArray) - LBound(MyArray) + 1
    Distance = 1

    While (Distance <= Size)
        Distance = 2 * Distance
    Wend

    Distance = (Distance / 2) - 1
    
    While (Distance > 0)
    
        NextElement = LBound(MyArray) + Distance
    
        While (NextElement <= UBound(MyArray))
            Index = NextElement
            Do
                If Index >= (LBound(MyArray) + Distance) Then
                    If nOrder = ASCENDING_ORDER Then
                        If MyArray(Index) < MyArray(Index - Distance) Then
                            TEMP = MyArray(Index)
                            MyArray(Index) = MyArray(Index - Distance)
                            MyArray(Index - Distance) = TEMP
                            Index = Index - Distance
                            gIterations = gIterations + 1
                        Else
                            Exit Do
                        End If
                    ElseIf nOrder = DESCENDING_ORDER Then
                        If MyArray(Index) >= MyArray(Index - Distance) Then
                            TEMP = MyArray(Index)
                            MyArray(Index) = MyArray(Index - Distance)
                            MyArray(Index - Distance) = TEMP
                            Index = Index - Distance
                            gIterations = gIterations + 1
                        Else
                            Exit Do
                        End If
                    End If
                Else
                    Exit Do
                End If
            Loop
            NextElement = NextElement + 1
            gIterations = gIterations + 1
        Wend
        Distance = (Distance - 1) / 2
        gIterations = gIterations + 1
    Wend
    
End Sub


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区久久久| 欧美卡1卡2卡| 欧美日韩一区国产| 久久久91精品国产一区二区三区| 亚洲午夜免费福利视频| 国产福利一区二区| 欧美一区二区三级| 亚洲黄色片在线观看| 国产91丝袜在线播放0| 欧美精品一二三区| 一区二区三区四区不卡在线 | 国产欧美日韩另类一区| 亚洲成a人v欧美综合天堂下载| 春色校园综合激情亚洲| 91精品黄色片免费大全| 亚洲成a人v欧美综合天堂下载 | 床上的激情91.| 精品噜噜噜噜久久久久久久久试看 | 国产成人亚洲综合a∨婷婷图片| 91精品国产一区二区三区 | 天天综合网 天天综合色| 成人av资源站| 欧美激情一区二区三区不卡| 国产精品一区二区你懂的| 精品福利av导航| 麻豆国产精品视频| 欧美一区二区日韩一区二区| 秋霞影院一区二区| 日韩欧美中文字幕精品| 蜜臀av在线播放一区二区三区| 91精品麻豆日日躁夜夜躁| 视频一区视频二区中文| 欧美一区二区三区免费在线看| 日本午夜一本久久久综合| 欧美美女喷水视频| 丝袜a∨在线一区二区三区不卡| 在线不卡欧美精品一区二区三区| 视频一区二区三区入口| 日韩精品一区在线| 国产精品一区二区三区乱码| 欧美国产欧美综合| 99久久综合国产精品| 亚洲精品乱码久久久久久日本蜜臀| 在线精品视频一区二区三四| 婷婷久久综合九色国产成人 | 国产精品久久影院| 色综合久久66| 丝袜亚洲另类欧美| 久久影视一区二区| 色综合中文综合网| 国产另类ts人妖一区二区| 久久精品水蜜桃av综合天堂| 成人app网站| 亚洲电影视频在线| 精品噜噜噜噜久久久久久久久试看 | 中文字幕视频一区二区三区久| 91老师国产黑色丝袜在线| 午夜精品一区二区三区免费视频| 日韩精品中文字幕在线不卡尤物| 风间由美一区二区av101| 亚洲图片一区二区| 精品美女一区二区| 色综合久久久久综合| 蜜桃av一区二区| 亚洲私人影院在线观看| 69堂亚洲精品首页| 成人免费高清视频在线观看| 亚洲一区视频在线| 精品久久久久久久久久久久久久久久久 | 日韩电影在线观看网站| 欧美高清一级片在线观看| 欧美日韩黄色影视| 成人精品电影在线观看| 亚洲成av人片一区二区梦乃| 国产精品色婷婷久久58| 欧美一级黄色录像| www..com久久爱| 国内精品写真在线观看| 亚洲图片欧美视频| 国产欧美一区二区三区网站| 在线91免费看| 色综合久久天天综合网| 国产一区二区在线看| 亚洲国产色一区| 中文字幕色av一区二区三区| 欧美videos大乳护士334| 欧美亚洲综合网| 岛国av在线一区| 韩日精品视频一区| 日韩电影免费在线观看网站| 亚洲靠逼com| 亚洲欧美中日韩| 国产日本欧洲亚洲| 精品国产乱码久久久久久久久 | 国产精品成人一区二区三区夜夜夜 | 亚洲精选在线视频| 国产欧美日韩精品在线| 精品久久国产老人久久综合| 欧美夫妻性生活| 欧美综合久久久| 日本高清不卡视频| 色综合天天综合在线视频| 风间由美中文字幕在线看视频国产欧美| 美女视频黄免费的久久| 美女视频网站久久| 免费一级片91| 老司机精品视频一区二区三区| 日本欧美加勒比视频| 日本中文字幕不卡| 午夜视频一区在线观看| 午夜成人免费视频| 日韩一区欧美二区| 丝瓜av网站精品一区二区| 日韩国产欧美一区二区三区| 青青草精品视频| 久久丁香综合五月国产三级网站| 久久99久久精品| 国产乱理伦片在线观看夜一区| 国产suv精品一区二区三区| 国产成人精品免费网站| 成人黄色国产精品网站大全在线免费观看 | 欧美做爰猛烈大尺度电影无法无天| 一本久久综合亚洲鲁鲁五月天| 色综合天天在线| 在线观看国产一区二区| 在线播放国产精品二区一二区四区| 欧美乱熟臀69xxxxxx| 欧美一卡二卡在线| 久久久久久**毛片大全| 中文字幕精品一区二区精品绿巨人| 国产精品第五页| 亚洲午夜电影在线| 天涯成人国产亚洲精品一区av| 久久99久久精品| 3d动漫精品啪啪1区2区免费| 精品乱人伦小说| 国产精品高潮呻吟| 图片区日韩欧美亚洲| 麻豆国产91在线播放| 懂色av一区二区夜夜嗨| 欧美网站一区二区| 欧美精品一区二区久久久| 亚洲视频免费看| 男男成人高潮片免费网站| 成人手机电影网| 在线不卡一区二区| 国产精品色在线| 亚洲成av人在线观看| 国产传媒久久文化传媒| 在线视频观看一区| 精品国产91九色蝌蚪| 亚洲日本韩国一区| 久久99精品视频| 欧美在线高清视频| 久久在线观看免费| 天堂蜜桃91精品| 91在线一区二区三区| 欧美大胆一级视频| 一区二区三区四区视频精品免费 | 亚洲va韩国va欧美va| 精品在线播放午夜| 91极品美女在线| 久久夜色精品国产噜噜av| 亚洲大片精品永久免费| 高清shemale亚洲人妖| 91精品国产福利在线观看| 亚洲色图视频网站| 国产福利一区在线| 91精品国产美女浴室洗澡无遮挡| 中文字幕亚洲一区二区va在线| 免费不卡在线观看| 欧美日韩在线播放一区| 亚洲欧洲综合另类| 国产成人av电影在线观看| 欧美一级电影网站| 午夜伦欧美伦电影理论片| 97精品久久久久中文字幕| 久久精品综合网| 国产一区二区调教| 精品国产乱码久久久久久久| 欧美aaaaa成人免费观看视频| 欧美日韩一区成人| 亚洲在线一区二区三区| 色又黄又爽网站www久久| 国产精品久线观看视频| 顶级嫩模精品视频在线看| 国产网站一区二区三区| 国产乱码字幕精品高清av| 久久综合色8888| 国产精品一级黄| 久久影院午夜片一区| 国产一区二区三区四区在线观看| 精品人伦一区二区色婷婷| 精品综合免费视频观看| 欧美岛国在线观看| 韩国成人在线视频| 久久久不卡网国产精品一区| 国产精品综合网| 国产精品视频你懂的| 北岛玲一区二区三区四区|