【VB】电话费计算练习
雅斯达吧
全部回复
仅看楼主
level 8
雅斯达 楼主
2007年04月29日 10点04分 1
level 8
雅斯达 楼主
Private Sub Command1_Click()Dim n As Integer n = Val(Text1.Text) If n <= 180 Then Text2.Text = " 0.4" End If If n > 180 Then If n Mod 60 = 0 Then Text2.Text = CStr(0.4 + (Int(n - 180) / 60) * 0.2) End If If n Mod 60 <> 0 Then Text2.Text = CStr(0.4 + (Int((n - 180) / 60) + 1) * 0.2) End If End IfEnd Sub
2007年04月29日 10点04分 2
level 8
雅斯达 楼主
界面如下
2007年04月29日 10点04分 3
level 8
雅斯达 楼主
这样多明了饿\~~~写那么多文字懒的看
2007年04月29日 10点04分 4
level 7
....................
2007年04月29日 12点04分 5
level 4
我们学过VB~~~~~~~
2007年04月30日 05点04分 6
1