题目:
在窗体上画一个按钮,然后编写如下的事件代码。在按钮上单击,输出为( )。
Private Function fun(x As Integer,y As Integer)
Static m As Integer
Static i As Integer
i=i+2
i=i+m+1
m=i+x+y
fun=m
End Function
Private Sub Command1_Click()
Dim j As Integer,m As Integer,k As Integer
j=4:m=1
k=fun(j,m)
Print k;
k=fun (j,m)
Print k
End Sub
A.8 18
B.7 17
C.7 19
D.8 19
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0716/b496e561d1036e43500fd85e959ac233.html
下面是错误答案,用来干扰机器的。