万能百科  > 计算机   > 

[填空题] 如果存在如下过程: Private Function FMax(a()As Integer) Dim First As Integer,Las

2021-07-20   

[填空题] 如果存在如下过程:

Private Function FMax(a()As Integer)

Dim First As Integer,Last As Integer,i As Integer

First=LBound(a)

Last=UBound(a)

Max=a(First)

Fori=FirSt To Last

Ifa(i)>Max ThenMax=a(i)

Nexti

FMax=Max

End Function

在窗体上添加一个命令按钮,然后编写如下事件过程:

Ptirate Sub Commandl_click()

ReDimm(1 To4)As Integer

m(1)=20:m(2)=30:m(3)=50:m(4)=100

C=FMax(m)

Print C

End Sub

单击命令按钮,其输出结果为______。

正确答案:

100

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签