我写的代码:
Dim a As Integer
Dim n As String
a = Text1.Value
n = "+"
n = "-"
n = "*"
n = "/"
Select Case c
Case Is = "+"
Text1.Value = a + Text1.Value
Case Is = "-"
Text1.Value = a - Text1.Value
Case Is = "*"
Text1.Value = a * Text1.Value
Case Is = "/"
Text1.Value = a / Text1.Value
End Select
而且我本来在写的时候把按键都付给文本了,但是发现+、-、*、/、不能付。
设定了一个变量n也不知道要怎么用。