📄 foreacha.vb
字号:
Imports SystemModule M Function Main() As Integer Dim a As Integer() = {1, 2, 3} Dim b As Integer Dim c As Integer = 0 For Each b In a c = c + b c = c + 1 Next If c <> 9 Then System.Console.WriteLine("#A1: count is wrong") : Return 1 End If c = 0 For Each b In a c = c + b c = c + 1 Dim d As Integer For Each d In a c = c + d Next Next If c <> 27 Then System.Console.WriteLine("#A2: count is wrong") : Return 1 End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -