vehicle.h
来自「C++参考书」· C头文件 代码 · 共 26 行
H
26 行
#ifndef VEHICLE_H
#define VEHICLE_H
#include <string>
#include "displayobject.h"
class Vehicle : public virtual DisplayObject
{
public:
Vehicle ( int yr, const string &md ) : year( yr ), model( md ) { }
virtual ~Vehicle( void ) { }
void maintenanceSchedule( void )
{
cout << "Maintenance Schedule" << endl ;
cout << year << " " << model << endl ;
}
private:
int year ;
string model ;
} ;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?