I'm studying for my finals that's at the end of the month. There is a question that goes:
Construct a C++ program that interactively accepts the data below into an array of five structures.
Car number------------Miles Driven------------Gallons used
25--------------------1450--------------------62
36--------------------3240--------------------136
44--------------------1792--------------------76
52--------------------2360--------------------105
68--------------------2114--------------------67
so far, I've come up with this, but with an operand error (which I do not understand):
#include <iostream>
#include <iomanip>
You have details defined at line 8 and again at line 25. Remove the definition at line 25.
When posting code, please use code tags. Highlight your code and press the <> button to the right of the edit window. That way you see what line number we're referring to.