窗体上有一个名称为Commandl的命令按钮,其中部分代码如下: Private Sub Commandl——Click() Dim a(10)As Integer。 Dim n As Integer Call calc(a,n)

admin2012-12-21  28

问题 窗体上有一个名称为Commandl的命令按钮,其中部分代码如下:
Private Sub Commandl——Click()
    Dim a(10)As Integer。
    Dim n As Integer
    Call calc(a,n)
End Sub
calc过程的首行应该是(    )。

选项 A、Sub calc(x()As Integer,n As Integer)
B、Public Sub calc(x()As Integer)
C、Private Sub calc(a(n)As Integer,n As Integer)
D、Publk:Sub calc(a As Integer,n As Integer)

答案A

解析 本题考查过程的声明的格式。
转载请注明原文地址:https://kaotiyun.com/show/pNhp777K
0

最新回复(0)