国内有钱了真的随便你怎么玩,享受过这种服务么?# Joke - 肚皮舞运动
a*y
1 楼
最近在复习从C++, 看到一道题,试写了一下,CONTAINER和QUERY如何实现呢?
请有经验人指教,谢谢!
Implement car hierarchy along with the accessor functions
and a CarRental class which contains the container to store them.
A car rental company wants to keep track of its cars. Each vehicle has
a license plate and a brand. Currently the company has SUVs
and Sedans. SUVs have an optional third row seat, sedans have an
optional sport package. Each car can be queried to inquire the number
of passengers it can carry.
请有经验人指教,谢谢!
Implement car hierarchy along with the accessor functions
and a CarRental class which contains the container to store them.
A car rental company wants to keep track of its cars. Each vehicle has
a license plate and a brand. Currently the company has SUVs
and Sedans. SUVs have an optional third row seat, sedans have an
optional sport package. Each car can be queried to inquire the number
of passengers it can carry.