📄 vehicle.h
字号:
////////////////////////////////////////
// File Name: Vehicle.h
////////////////////////////////////////
#ifndef VEHICLE_H
#define VEHICLE_H
#include <string>
#include "DisplayObject.h"
class Vehicle : public virtual DisplayObject
{
int year;
std::string model;
public:
Vehicle(int yr, const std::string& md) :
year(yr), model (md) { }
virtual ~Vehicle() { }
void MaintenanceSchedule()
{
std::cout << "Maintenance Schedule" << std::endl;
std::cout << year << " " << model << std::endl;
}
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -