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);
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314