【发布时间】:2020-01-20 20:25:12
【问题描述】:
我是编码新手,我真的不知道为什么我会收到一条消息,上面写着 “预期声明” 在底部一行的 greenCount 部分这段代码。该代码几乎解释了我想要什么,但无论如何我有三个变量,totalCount、redCount 和 greenCount。
greenCount 的值应该是totalCount 减去redCount。
有人可以帮忙吗?
Public Class Form1
Dim totalCount As Integer = 44
Dim redCount As Integer
Dim greenCount As Integer greenCount = totalCount - redCount
【问题讨论】:
标签: vb.net visual-studio