I keep receiving the following compiling error when trying to print a data structure from within an array:
could not convert 'new_vehicle[t].vehicles_in::inVin' to 'bool'
If anyone can offer any insight about this error, I'd really appreciate it!
Here is the code that defines the data structure within the array:
This is the code where I am calling the function to print the data structure:
using namespace std;
const int IN_VEHICLE = 100;
And here is the code for the function that is printing the data within the array.
for (in=0; in<IN_VEHICLE; in++)
cout << new_vehicle[t].inVin;
cout << new_vehicle[t].inPassengerCount;
cout << new_vehicle[t].inLuxury;
cout << new_vehicle[t].inMpg;
cout << new_vehicle[t].inType;