LNK 2019

C++语言 码拜 9年前 (2015-11-12) 861次浏览
#include<iostream>
using namespace std;
class Motor
{
public:
void SwitchIgnition()
{
cout<<“Innition ON”<<endl;
}
void PumpFuel()
{
cout<<“Fuel in cylinders”<<endl;
}
void FireCylinders()
{
cout<<“Vrooom”<<endl;
}
};
class Car:protected Motor
{
public:
void Move()
{
SwitchIgnition();
PumpFuel();
FireCylinders();
}
};
class SuperCar:protected Car
{
public:
void Move()
{
SwitchIgnition();
PumpFuel();
Motor
FireCylinders();
FireCylinders();
FireCylinders();
}
};
int main()
{
SuperCar myDreamCar;
myDreamCar.Move();
return 0;
}
问一下高手这个LNK 2019的错误本人该怎么样破?
解决方案:40分
Motor
FireCylinders();

把Motor删掉


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明LNK 2019
喜欢 (0)
[1034331897@qq.com]
分享 (0)