#include using namespace std;class vehicle{public:int MaxSpeed;int Weight;vehicle() //默认构造函数{coutMaxSpeed = MaxSpeed;this->Weight = Weight;coutMaxSpeed = MaxSpeed;this->Weight = Weight;this->Height = Height;coutMaxSpeed = MaxSpeed;this->Weight = Weight;this->gas = gas;coutMaxSpeed = MaxSpeed;this->Weight = Weight;this->gas = gas;this->Height = Height;coutRun(); //fun???m_vehicle = &m_motorcar;m_vehicle->Run();m_vehicle = &m_motorcycle;m_vehicle->Run();system("pause");return 0;}