Only define Cars once.
struct Car
{
int number, miles;
float gallons;
float averagegallons;
}Cars;
Car Cars[MAXCARS]; Then figure out which way to use them.
getdata(Cars.number, Cars.miles, Cars.gallons);
putdata(Cars.number, Cars.averagegallons);
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004