[C++] Easy to Understand Code
\nclass ParkingSystem {\n    int big;\n    int medium;\n    int small;\npublic:\n    ParkingSystem(int big, int medium, int small) {\n        this->big = big;\n
```\nclass ParkingSystem {\n    int big;\n    int medium;\n    int small;\npublic:\n    ParkingSystem(int big, int medium, int small) {\n        this->big = big;\n        this->medium = medium;\n        this->small = small;\n    }\n    \n    bool addCar(int carType) {\n        if(carType == 1 && this->big > 0) \n        {\n            this->big -= 1;\n            return true;\n        }\n        if(carType == 2 && this->medium > 0) \n        {\n            this->medium -= 1;\n            return true;\n        }\n        if(carType == 3 && this->small > 0) \n        {\n            this->small -= 1;\n            return true;\n        }\n        return false; \n    }\n};\n```
['C', 'C++']