23 lines
418 B
C++
23 lines
418 B
C++
#include <iostream>
|
|
#include "Car.h"
|
|
using namespace std;
|
|
|
|
int main(int argc, const char* argv[]) {
|
|
int userYear;
|
|
int userPrice;
|
|
int userCurrentYear;
|
|
Car myCar;
|
|
|
|
cin >> userYear;
|
|
cin >> userPrice;
|
|
cin >> userCurrentYear;
|
|
|
|
myCar.SetModelYear(userYear);
|
|
myCar.SetPurchasePrice(userPrice);
|
|
myCar.CalcCurrentValue(userCurrentYear);
|
|
|
|
myCar.PrintInfo();
|
|
|
|
return 0;
|
|
}
|