Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim X1 As Double = Me.TextBox1.Text
Dim Y1 As Double = Me.TextBox2.Text
Dim X2 As Double = Me.TextBox3.Text
Dim Y2 As Double = Me.TextBox4.Text
Dim X3 As Double = Me.TextBox5.Text
Dim Y3 As Double = Me.TextBox6.Text
Dim s As Double = 0.5 * (X1 * Y2 - X1 * Y3 + X2 * Y3 - X2 * Y1 + X3 * Y1 - X3 * Y2)
MsgBox(s)
End Sub
[本日志由 tiancao1001 于 2017-09-30 07:09 PM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |