下载此文档

vb上机程序设计题题解.doc


文档分类:资格/认证考试 | 页数:约7页 举报非法文档有奖
1/7
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/7 下载此文档
文档列表 文档介绍
上机程序设计题题解
加法器
Private Sub Form_Load()
= 1
= 1
= 1
=True
End Sub
Private mand1_Click()
= Str(Val() + Val())
End Sub
Private mand2_Click()
= ""
= ""
= ""

End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
KeyAscii = 0
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
KeyAscii = 0
End If
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
KeyAscii = 0
End If
End Sub
健康称
Private Sub Form_Load()
= "健康称"
= 1
= 1
= 3
= 3
End Sub
Private mand1_Click()
Dim sg As Integer, tz As Integer, bz As Integer
sg = Val()
tz = Val ()
bz = sg - 105
If tz/ bz >= Then
= "偏胖,注意节俭!"
ElseIf tz / bz <= Then
= "偏瘦,增加营养!"
Else
= "正常。继续保持!"
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0:
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0:
End S

vb上机程序设计题题解 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数7
  • 收藏数0 收藏
  • 顶次数0
  • 上传人jianjian401
  • 文件大小119 KB
  • 时间2017-07-24