[填空題] 如果存在如下過(guò)程: Private Function FMax(a()As Integer) Dim First As Integer,Las
2021-07-20
[填空題] 如果存在如下過(guò)程:
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
在窗體上添加一個(gè)命令按鈕,然后編寫(xiě)如下事件過(guò)程:
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
單擊命令按鈕,其輸出結(jié)果為_(kāi)_____。
正確答案:100
詞條內(nèi)容僅供參考,如果您需要解決具體問(wèn)題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。