填空题
【程序说明】右击窗体则打开Windows自带的计算器“C:/windows/calc.exe”;单击“退出”按钮时将右击窗体的次数写入磁盘文件。
1
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button = 2 Then n = n + 1: Shell 2
End Sub
Private Sub Command1_Click 3
Open "C:/a1.dat" For 4
Print #1,n: Close #1
5
End Sub
1、
【正确答案】
1、Dim n As Integer "C:/windows/calc.exe" Output End