对窗体编写如下代码: Option Base 1 Private Sub Form_ KeyPress (KeyAscii As Integer) a=Array(237,126,87,48,498) m1=a(1)

admin2010-03-30  29

问题 对窗体编写如下代码:    Option Base 1    Private Sub Form_ KeyPress (KeyAscii As Integer)            a=Array(237,126,87,48,498)    m1=a(1)    m2=1    If KeyAscii=13 Then       For i=2 To 5           If a(i)>m1 Then              m1=a(I)              m2=i           End If        Next i    End If    Print m1    Print m2    End Sub    程序运行后,按回车键,输出结果为______ 。

选项 A、 48        4
B、237         1
C、498         5
D、498     4

答案4

解析
转载请注明原文地址:https://jikaoti.com/ti/cCq0FFFM
0

最新回复(0)