Please put your code between
[code] [/code] tags...
What lines does it say the errors happen on?
cout "Total: $"
You forgot to put the << operator.
And obviously the pseudo-code inside the if statements isn't going to be compile... the pseudo-code provided is for you to then translate into actual code.
How do we know if two items are the same thing? Is the
item the ID number of the item (ex, banana's ID is 3, apple's ID is 4)? Then, in the if statement, you should check if
item1 and
item2 are
equal in value to each other.
Do you know how to use comparison operators in C++?
Go to
http://www.cplusplus.com/doc/tutorial/operators/ Relational and comparison operators section.
_________________________
Also, if item1Price and item2Price are both doubles, then total should probably be a double as well, unless you want it to truncate the values. doubles emulate the Real number line (-1.5, 0.0, 1.0, 3.14, 2.78, 1.618, etc), while ints can only be Integers (-1, 0, 1, 2, 3 ...}.