有如下过程,将两次调用过程proc的结果分别填于空 【9】 和 【10】 处。
Private Sub Command1_Click( )
Dim a As Integer
Dim b As Integer
a=2
b=5
Call proc(a, b) 【9】
Call proc(a) 【10】
End Sub
Private Sub proc(x As Integer,Optional y)
Dim z As Integer
If IsMissing(y) Then
MsgBox ("没有提供可选参数")
Else
z=x*y
MsgBox ("乘积=" + Str(z))
End If
End Sub
题库:计算机等级考试
类型:填空题
时间:2017-07-03 15:33:25
免费下载:《填空》Word试卷
有如下过程,将两次调用过程proc的结果分别填于空 【9】 和 【10】 处。
Private Sub Command1_Click( )
Dim a As Integer
Dim b As Integer
a=2
b=5
Call proc(a, b) 【9】
Call proc(a) 【10】
End Sub
Private Sub proc(x As Integer,Optional y)
Dim z As Integer
If IsMissing(y) Then
MsgBox ("没有提供可选参数")
Else
z=x*y
MsgBox ("乘积=" + Str(z))
End If
End Sub
本题关键词:过程,分娩全过程,教学过程结构,全过程,交往过程,传染过程,增值过程,信息过程,包被过程,动机过程;