unsigned int size = 0;//初始化车子的数量
cout << "How many cars do you wish to catalog? ";
cin >> size;//输入车辆
cin.get();//???
//等价于 struct car* pcar = new struct car[size];
car* pcar = new car[size];//结构数组,根据输入的车辆来改变,数组
for (unsigned int i = 0; i < size; i++)
{
cout << "Car #" << i + 1 << ":" << endl;
cout << "Please enter the make: ";
getline(cin, pcar[i].company);
cout << "Please enter the year make: ";
cin >> pcar[i].pro_year;
cin.get();
}