全部题库 / VB / 试题详情
单选题 VB
2008-12-02

在窗体上画一个名称为Command1的命令按钮,并编写如下程序:
Private Sub Command1_Click()
 Dim x As Integer
 Static y As Integer
  x=10
  y=5
 Call f1(x,y)
 Print x,y
End Sub
Private Sub f1(ByRef x1 As Integer, y1 As Integer)
 x1=x1+2
 y1=y1+2
End Sub
程序运行后,单击命令按钮,在窗体上显示的内容是(  )。

A.10 5
B.12 5
C.10 7
D.12 7

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题