car.h

来自「ssd5 exam2需要的自己下载ssd5 exam2需要的自己下载」· C头文件 代码 · 共 29 行

H
29
字号
#include <iostream>
#include <string>
#ifndef _CAR_H_
#define _CAR_H_

using namespace std;

class Car {

private:
    string license_plate;
    int moved;
    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 + =
减小字号Ctrl + -
显示快捷键?