我想写的是解决了使用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