An array of classes

Source File: Main.cpp

#include <iostream>#include <string>using namespace std;const string CarMake[] = { "Ford",    "Geo",  "Chevrolet", "Toyota",			   "Mazda",   "Jeep", "Honda",     "Lexus",			   "Mercury", "Saab", "Dodge",     "Jaguar" };const string CarModel[] = { "Focus", "Crown Victoria", "Metro", "Corolla",			    "Escort", "Taurus", "Tracker", "Land Cruiser" };const string CarTransmission[] = { "Automatic", "Manual" };const string YesNo[] = { "No", "Yes" };struct TCar{	long   SerialNumber;	int    Make;	int    Model;	int    NumberOfDoors;	int    Year;	int    Transmission;	bool   AirCondition;	bool   CDRom;};int main(){	void CarCharacteristics(const TCar InStock[], const int n);	TCar InStock[] = { { 76263,  3, 3, 4, 1998, 0, false, false },	                   { 628363, 0, 0, 2, 2000, 1, false, false },	                   { 5675,   3, 7, 4, 2002, 1, true,  true  },	                   { 46483,  0, 0, 4, 2003, 0, true,  false } };	int NumberOfCars = sizeof(InStock) / sizeof(TCar);	cout << "Car Characteristics";	CarCharacteristics(InStock, NumberOfCars);	cout << "\n\n";	return 0;}void CarCharacteristics(const TCar InStock[], const int NoOfCars){	for(int i = 0; i < NoOfCars; ++i)	{		cout << "\n\nCar #:  " << InStock[i].SerialNumber;		cout << "\nMake:    " << CarMake[InStock[i].Make];		cout << "\nModel:   " << CarModel[InStock[i].Model];		cout << "\nDoors:   " << InStock[i].NumberOfDoors;		cout << "\nYear:    " << InStock[i].Year;		cout << "\nTransmision: "<< CarTransmission[InStock[i].Transmission];		cout << "\nA/C:     " << YesNo[InStock[i].AirCondition];		cout << "\nCD-Rom: " << YesNo[InStock[i].CDRom];	}}