📄 car.h
字号:
#include <iostream>
#include <string>
#ifndef _CAR_H_
#define _CAR_H_
using namespace std;
class Car {
private:
int moved;
string license_plate;
int aisle;
public:
Car(string);
Car(string, int);
int getTimesMoved(void) const;
void setTimesMoved(int);
string getPlate(void) const;
int getAisle(void) const;
bool operator < (const Car& rhs) const;
bool operator == (const Car& rhs) const;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -