The classic 'invisible' parse error.
I'm getting a parse error on both of the following lines, and I can't figure out why. CAR is typdeffed to be a structure, numCars is an integer, and costPtr/wtPtr are both pointers. For the life of me I can't see it, which is why I hope some fresh minds might be able to help! The typedef for struct CAR is below.
Code:
FillArray ( CAR train, numCars, float &costPtr, int &wtPtr );
FindTotals ( CAR train, numCars, float &costPtr, int &wtPtr );
typedef struct car
{
int carNum;
char cargo[LENGTH];
char origin[LENGTH];
char destination[LENGTH];
int weight;
int miles;
float cost;
}CAR;