题库 高中信息

题干

小王编写了一个VB程序,功能为:在文本框Text1中输入三位自然数,单击“交换”按钮Command1,在文本框Text2中输出由该三位数各位数字重组后的最小数,运行界面如图所示。

(1)若要将按钮上显示的“Command1”改为“交换”,应设置Command1的________________属性。(2)小王编写的按钮事件过程代码如下:
Dim n As Integer, max As Integer
Dim a As Integer, b As Integer, c As Integer
Dim t As Integer,m As Iinteger
x = Val(Text1.Text)
a =" x" \ 100
b = ________①_______________
c =" x" Mod 10
If a >b Then t =" a:" a =" b:" b = t
If a > c Then t =" a:" a =" c:" c = t
If b > c Then t =" c:" c =" b:" b = t
___________②________________
Text2.Text = str(m)
为了实现上述功能,在程序划线处填入合适的代码。[:Zxxk.Com]
①划线处代码:_____________________________________。
②划线处代码:_____________________________________。
上一题 下一题 0.99难度 填空题 更新时间:2017-03-01 04:50:51

答案(点此获取答案解析)