[单项选择题] 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:Private Sub Command1_Click () Dim a As Integer, b As In
18 查阅
[单项选择题] 在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:
Private Sub Command1_Click ()
Dim a As Integer, b As Integer, c As Integer
a = 1: b = 2: c = 3
Print fun2 (c, b,
A.
End Sub
Private Function funl (x As Integer, y As Integer, z As Integer)
fun1 = 2 * x + y + 3 * z
End Function
Private Function fun2(x As Integer, y As Integer, z As Integer)
fun2 = fun1(z, x, y)+ x
End Function
程序运行后,单击命令按钮,则窗体上显示的内容是A) 7
B.14
C.17
D.30
参考答案: