Ответы
Ответ:}
string toString() {
string d = “”, m = “”;
if (day < 10) d = "0";
if (month car_model = car_model;
this->manufacturer = manufacturer;
this->class1 = class1;
this->year = year;
this->date = date;
}
Print() {
cout << "\t" << car_model << "\t" << manufacturer << "\t" << class1 << "\t" << year << "\t" << date.toString() << endl;
}
};
int main() {
Car* Cars[] {
new Car("AE86 Sprinter Trueno", "Toyota", "\tSport car", 2001, Date(01, 01, 2006)),
new Car("Skyline X\t", "Nissan\t", "Sport car", 2003, Date(12, 04, 2005)),
new Car("Corvette C3 Cabriolet", "Chevrolet", "Sport car", 2000, Date(17, 05, 2002)),
new Car("Ferrari F40\t", "Ferrari\t", "Sport car", 1969, Date(01, 06, 2017)),
new Car("Celica\t\t", "Toyota", "\tSport car", 1999, Date(03, 03, 2004))
};
Объяснение: