typedef struct car_description{
char car_name [MAXLEN];
int car_date;
}CAR;
int main() {
using namespace std;
int num_of_cars;
CAR users_car;
//ptr = new(CAR);
cout << "How many cars do you wish to catalog? ";
cin >> num_of_cars;
cout << "Please enter the make: ";
cin.get(users_car.car_name, MAXLEN);
cout << "Please Enter the year made: ";
cin >> users_car.car_date;
cout << "Here your collection:" << endl;
cout << users_car.car_date << " " << users_car.car_name;
}
When entering the first input skips over and ends the program. Tried to use different functions of cin like cin.get or getline and still the same issue. What is the issue with the code. (Probably a lot)