⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module1.vb

📁 VS.NET培训 vs.netppeixun.rar
💻 VB
字号:
Imports Sort
Imports system

Namespace SortTest

    Module Module1

        Shared Sub Main()
            Dim origarray(10), sorted(10) As Double
            Dim RndObj As New system.Random
            Dim i As Integer
            
            'Initilize the array with 10 random numbers
            For i = 0 To 9
                origarray(i) = RndObj.Next()
            Next

            'Create the c# object
            Dim sortclass As New Sorting()
            
            'Call the BubbleSort method passing in the array
            sorted = sortclass.BubbleSort(origarray)

            'Output the results of the two arrays
            Console.Writeline("Bubble sort Example Results")
            For i = 0 To 9
                Console.Writeline(i & ": " & origarray(i) & " " & sorted(i))
            Next
        End Sub

    End Module

End Namespace

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -