回复:(huangwy)函数其实没有什么深奥的比如有一段程...
有时候试题上就碰到那么一些啦!复杂一点的就不知怎么办啦!
就像有下列程序,单击按钮后输出的结果是6 6 12
7 11 11我都不明白是为什么会有这样的结果啦!
Private Sub Command1_Click()
Dim x As Integer ,y As Integer ,z As Integer
x =1:y=2:z=3
Call God (x,x,z)
Print x:x:z
Call God (x,y,y)
Print x:y:y
End Sub
Print Sub God(x As Integer ,y As Integer ,z As Integer)
x=3*z+1
y=2*z
z=x+y
End Sub