这道题怎么算,谢谢指导
Dim y As IntegerPrivate Sub Command1_Click()
Dim x As Integer
x = 2
Text1.Text = Fun2(Fun1(x), y)
Text2.Text = Fun1(x)
End Sub
Private Function Fun1(x As Integer) As Integer
x = x + y
y = x + y
Fun1 = x + y
End Function
Private Function Fun2(x As Integer, y As Integer) As Integer
Fun2 = 2 * x + y
End Function
为什么单击一次,两个文本框都是 10
为什么单击两次,两个文本框都是 58
请各位指导一下小弟啊,谢谢