题目

有如下VB程序: Dim c As Integer Private Sub Form _Load ( )     c = 0: Text1. Text = “” End sub Private Sub Text1 _Change ( )     If Va l(Text1. Text) > 0 Then         Text1. Text = Str(Val(Text1. Text) \2         c = c + 1     End If Text2. Text = Str(c)     End sub 运行该程序,在文本框Text1中输入5,则Text1和Text2中显示的内容分别是(  ) A . 0  3 B . 1  2 C . 5  1 D . -1  3 答案:A
信息技术 试题推荐
最近更新