I'm a little confused about structuring the code. Keep getting the same output. It's supposed to be a program that lets you choose the watch you want to buy and then calculates the final price of the selected watch. You press 1 for a Bulova watch, 2 for a Omega watch and 3 for a Rolex. Problem is the program gives me the bulova final price as an output no matter what number I press. On top of that I get an error that I can't figure out. Can some one give me some assistance?
Error 1 fatal error C1075: end of file found before the left brace '{' at 'f:\cois 270\projects\examen 1a\examen 1a\relojes2.cpp(67)' was matched f:\cois 270\projects\examen 1a\examen 1a\relojes2.cpp 131 Examen 1a
What about this error. Can't seem to get rid of it.
now use watch in your output, and use price as input to your maths to derive the different results for each choice, rather than repeating the calculation code block or each menu choice.
Also, look into switch statements rather than using if then else if then else if then else...