万能的后院,懂vb的请进
Private Sub Form_Click()Dim x As Integer, y As Integer
x = Val(InputBox(WWW))
If x = 0 Then y = cosx - x ^ 2 + 3 * x
Else If
y = sinx + Sqr(x ^ 2 + 1)
Text1.Text = x
Text2.Text = y
End If
End If
End Sub
请问错在哪? 点解晴晴要用VB噶?
阿敏好似识VB. 帮人问的 懂不懂VB,会英文的都不难看出来 Dim x As Integer, y As Integer
x = Val(InputBox("www"))
If x = 0 Then
y = Math.Cos(x) - x ^ 2 + 3 * x
Else
y = Math.Sin(x) + Math.Sqrt(x ^ 2 + 1)
End If
Text1.Text = x
Text2.Text = y VB是神马?~ 漏水果然厉害 瓶子就是厉害
页:
[1]