单选题
窗体上有一个Text1文本框,一个Command1命令按钮,并有以下程序 Private Sub Commandl_Click() Dim n If Text1.Text<>"23456" Then n=n+1 Print "口令输入错误" & n & "次" End If End Sub
A、
在Dim n语句的下面添加一句:n=O
B、
把Print "口令输入错误" & n & "次"改为Print "口令输入错误" +n+"次"
C、
把Print "口令输入错误" & n & "次"改为Print "口令输入错误"&Str(n)&"次"
D、
把Dim n改为Static n
【正确答案】
D
【答案解析】
提交答案
关闭