我想寫的是解決了使用VBVB.NET表達式是一個值,因此不能作爲賦值
二次方程式代碼的目標這是爲什麼示值誤差:
Error 1 Expression is a value and therefore cannot be the target of an assignment
Module Module1
Sub Main()
Dim A, B, C As Integer
Console.WriteLine("Quadratic Equation calculator")
Console.WriteLine(" AX^2 + BX + C")
Console.WriteLine("Enter A")
Console.Read() = A
Console.WriteLine("Enter B")
Console.Read() = B
Console.WriteLine("Enter C")
Console.Read() = C
'ax^2 + bx + c = 0
'enter a,b and c
'set ac as variable
'set b as variable
'find number that multiplies for ac and adds for b
'put them in (X+)(x+)
End Sub
End Module
那些話是什麼意思,當你讀?你也是相當不錯的新話,請閱讀[提問]和取[旅遊]的部分約尤其是寫一個好標題,告訴我們*,其中*誤差等 – Plutonix
我不熟悉用VB,但它似乎你試圖將A,B,C分配給函數Console.Read()的值。試試設置A = Console.Read() – Davuz