看看这段vb程序哪里错了(已知一元一次方程为AX+B=0,设计一个程序,当用户输入A和B的值,输出X值,界面如Private Sub Command1_Click()Dim a As Integer,b As Integer,c As SingleText1.Text = aText2.Text = bc = -b / aText3.Te

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 12:15:41
看看这段vb程序哪里错了(已知一元一次方程为AX+B=0,设计一个程序,当用户输入A和B的值,输出X值,界面如PrivateSubCommand1_Click()DimaAsInteger,bAsIn

看看这段vb程序哪里错了(已知一元一次方程为AX+B=0,设计一个程序,当用户输入A和B的值,输出X值,界面如Private Sub Command1_Click()Dim a As Integer,b As Integer,c As SingleText1.Text = aText2.Text = bc = -b / aText3.Te
看看这段vb程序哪里错了(已知一元一次方程为AX+B=0,设计一个程序,当用户输入A和B的值,输出X值,界面如
Private Sub Command1_Click()
Dim a As Integer,b As Integer,c As Single
Text1.Text = a
Text2.Text = b
c = -b / a
Text3.Text = c
End Sub
Private Sub Command2_Click()
End
End Sub

看看这段vb程序哪里错了(已知一元一次方程为AX+B=0,设计一个程序,当用户输入A和B的值,输出X值,界面如Private Sub Command1_Click()Dim a As Integer,b As Integer,c As SingleText1.Text = aText2.Text = bc = -b / aText3.Te
Private Sub Command1_Click()
Dim a As Integer, b As Integer, c As Single
a = Val (Text1.Text )
b = Val (Text2.Text )
c = -b / a
Text3.Text = Str ( c )
End Sub
Private Sub Command2_Click()
End
End Sub