Hello,
The errors are at the bottom of the post, and they are about the error: non-lvalue.
I am writing a program which allows the user to choose a beverage, sandwich and side order from a menu. After the choices are made, the program should do the following:
* list the items chosen with the cost of each item
* the sub-total of just the items
* the total cost including tax (use 6.5% for the tax).
The following are the items and prices I will include:
That is what I have.
Here are the errors that display: Code:
menu.cpp: In function `int main()':
menu.cpp:33: non-lvalue in assignment
menu.cpp:35: non-lvalue in assignment
menu.cpp:37: non-lvalue in assignment
menu.cpp:45: non-lvalue in assignment
menu.cpp:47: non-lvalue in assignment
menu.cpp:49: non-lvalue in assignment
menu.cpp:57: non-lvalue in assignment
menu.cpp:59: non-lvalue in assignment
menu.cpp:61: non-lvalue in assignment End
I do not know what non-lvalue means, so it would be great if someone could help me out there, it would be greatly appreciated!
Thank you!