没有合适的资源?快使用搜索试试~ 我知道了~
vb程序设计教程+第三版+龚沛曾+课后答案
资源推荐
资源详情
资源评论
第一章
1
Private Sub Form_Load()
End Sub
2
Private Sub Command1_Click()
Text3.Text = Text1.Text + Text2.Text
End Sub
Private Sub Form_Load()
End Sub
3
Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Form_Load()
End Sub
第二章
1
Dim a As Long
Dim b As Long
Dim c As Long
Private Sub Command1_Click()
1
Private Sub Form_Load()
End Sub
2
Private Sub Command1_Click()
Text3.Text = Text1.Text + Text2.Text
End Sub
Private Sub Form_Load()
End Sub
3
Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Form_Load()
End Sub
第二章
1
Dim a As Long
Dim b As Long
Dim c As Long
Private Sub Command1_Click()
a = Val(Text1.Text) * 3600
b = Val(Text2.Text) * 60
c = Val(Text3.Text)
Text4.Text = a + b + c
End Sub
Private Sub Form_Load()
End Sub
2
Private Sub Command1_Click()
If Val(Text2.Text) = 0 Then
MsgBox "除数不能为0!", vbOK, "输入数据错误"
Else
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End If
End Sub
Private Sub Form_Load()
End Sub
3
Private Const I As Double = 3.1415926
Private Sub Command1_Click()
' Const I As Double = 3.1415926
Label2.Caption = Val(Text1.Text) * (180 / I)
End Sub
b = Val(Text2.Text) * 60
c = Val(Text3.Text)
Text4.Text = a + b + c
End Sub
Private Sub Form_Load()
End Sub
2
Private Sub Command1_Click()
If Val(Text2.Text) = 0 Then
MsgBox "除数不能为0!", vbOK, "输入数据错误"
Else
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End If
End Sub
Private Sub Form_Load()
End Sub
3
Private Const I As Double = 3.1415926
Private Sub Command1_Click()
' Const I As Double = 3.1415926
Label2.Caption = Val(Text1.Text) * (180 / I)
End Sub
剩余7页未读,继续阅读
资源评论
worp188
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功