【单选题】设有以下程序代码:Private Sub Command1_Click() Static a As Integer proc a Print aEnd SubSub proc(x As Integer) x = x + 1End Sub运行程序,3次单击命令按钮,第3次单击后显示的是_______________。
【单选题】有以下程序代码 : Private Sub Command1_Click () Print fun(10), fun(5) End Sub Private Function fun(n As Integer) As Integer Static t For k = 1 To n t = t + k Next k fun = t End Function 执行 Command1_Click 过程产生...
【单选题】设有以下程序代码: Private Sub Command1_Click () Dim x As String, y As Integer x = " 考试 " y = 1 proc x, y Print " 第 "; y; " 次 "; x End Sub Sub proc ( ByVal a As String, b As Integer ) a = " 参加 " + a b = b + 1 ...
【单选题】设有以下程序代码: Private Sub Command1_Click () Static x As Integer proc x Print x End Sub Sub proc ( a As Integer ) a = a + 2 End Sub 运行程序,单击命令按钮 3 次,第 3 次单击后显示的是 ( ) 。
【单选题】有以下程序代码 : Private Sub Command1_Click () Print fun(10), fun(5) End Sub Private Function fun(n As Integer) As Integer Static t For k = 1 To n t = t + k Next k fun = t End Function 执行 Command1_Click 过程产生...