car.h

来自「ssd5 考试2.下下来对你一定有帮助的」· C头文件 代码 · 共 28 行

H
28
字号
#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 + =
减小字号Ctrl + -
显示快捷键?