[单项选择题] 在窗体中添加一个名称为Command1的命令按钮,然后编写如下代码: Function F(a As Integer) b=0 Static cb=b+1c=c+1F=a+b
22 查阅
[单项选择题] 在窗体中添加一个名称为Command1的命令按钮,然后编写如下代码:
Function F(a As Integer)
b=0
Static c
b=b+1
c=c+1
F=a+b+c
End Function
Private Sub Command1 Click()
Dim a As Integer
Dim b As Integer
a=2
For i=1 To 3
b=F(
A.
Print b
Next i
End Sub
程序运行后
参考答案: