题目内容:
假定有如下的Sub过程: Sub Sub1(x As Single,y As single) t=x x=t/yy=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_click() Dim a As Single Dim b As Single a=5 b=4 Sub1 a,b Print a;b End Sub 程序运行后,单击命令按钮,输出结果为
参考答案:
答案解析:
假定有如下的Sub过程: Sub Sub1(x As Single,y As single) t=x x=t/yy=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_click() Dim a As Single Dim b As Single a=5 b=4 Sub1 a,b Print a;b End Sub 程序运行后,单击命令按钮,输出结果为