(23)已知有下面的过程 Private Sub proc1(a As Integer,b As String,Optional x As Boolean)……End Sub正确调用此过程的语句是A)Call procl(5) B)Call proc1 5,”abc”,FalseC)proc1(12,”abc”,True) D)proc1 5,“abc”没一个答案是
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 01:51:40
(23)已知有下面的过程 Private Sub proc1(a As Integer,b As String,Optional x As Boolean)……End Sub正确调用此过程的语句是A)Call procl(5) B)Call proc1 5,”abc”,FalseC)proc1(12,”abc”,True) D)proc1 5,“abc”没一个答案是
(23)已知有下面的过程
Private Sub proc1(a As Integer,b As String,Optional x As Boolean)
……
End Sub
正确调用此过程的语句是
A)Call procl(5) B)Call proc1 5,”abc”,False
C)proc1(12,”abc”,True) D)proc1 5,“abc”
没一个答案是对的,郁闷~..
不行哦,提示子程序或函数未定义...
(23)已知有下面的过程 Private Sub proc1(a As Integer,b As String,Optional x As Boolean)……End Sub正确调用此过程的语句是A)Call procl(5) B)Call proc1 5,”abc”,FalseC)proc1(12,”abc”,True) D)proc1 5,“abc”没一个答案是
Private Sub proc1(a As Integer,b As String,Optional x As Boolean)
……
End Sub
一般,我们函数调用要求形参和实参的类型、顺序、数量要是一致的
形参中,有一个整形变量a,字符型变量b,和可选的布尔型变量x.
那么我们在调用时,就应该与之对应.