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

📄 conditionalstatementsb.vb

📁 大名鼎鼎的mono是.NET平台的跨平台(支持linux
💻 VB
字号:
Imports SystemModule ConditionalStatementsB    Function Main() As Integer        Dim i As Integer = 0        ' With the single-line form, it is possible to have multiple         ' statements executed as the result of an If...Then decision.        If i = 0 Then i += 1 : i += 2 : i += 3        If i <> 6 Then System.Console.WriteLine("#CSB1 - LineIfThenStatement failed") : Return 1 _         Else i += 6 : i += 12        If i <> 24 Then            System.Console.WriteLine("#CSB2 - LineIfThenStatement failed") : Return 1        End If        ' Execution of a Case block is not permitted to "fall through" to         ' next switch section        Dim j As Integer = 0        For i = 0 To 3            Select Case i                Case 0                Case 2                    j += 2                Case 1                Case 3                    j += 3            End Select        Next        If j <> 5 Then            System.Console.WriteLine("#CSB3 - Switch Case Statement failed") : Return 1        End If    End FunctionEnd Module

⌨️ 快捷键说明

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