Question: Define an array named collection that holds 40 Car structures. struct Car { string make, model; int year; double cost; // Constructors Car( ) {
Define an array named collection that holds 40 Car structures.
struct Car
{
string make, model;
int year;
double cost;
// Constructors
Car( )
{ make = model = ; year = cost = 0; }
Car(string mk, string md, int yr, double c)
{ make = mk; model = md; year = yr; cost = c; }
};
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
