《停车场管理PPT课件.ppt》由会员分享,可在线阅读,更多相关《停车场管理PPT课件.ppt(8页珍藏版)》请在金锄头文库上搜索。
1、1 停车场管理 2 程序文件 源文件 cpp文件 main cpp头文件 h文件 lk stack hlk list hnode hutility hvehiclestop h 3 文件视图 4 main cpp文件 intmain void intmaxnum rate charch cout maxnum rate StoppingPlacemyStoppingPlace maxnum rate VehicleTypeveArrive veLeave while ch 4 cout ch 5 main cpp文件 switch ch case 1 cout veArrive num veA
2、rrive time myStoppingPlace Arrive veArrive break case 2 cout veLeave num veLeave time myStoppingPlace Leave veLeave break case 3 myStoppingPlace DisplayStatus break return0 6 vehiclestop h文件 包含VehicleType结构体说明和StoppingPlace类声明和接口函数 以及重载的Write函数 include lk stack h include lk list h structVehicleType
3、unsignedintnum unsignedinttime voidWrite conststructVehicleType 7 vehiclestop h文件 包含VehicleType结构体说明和StoppingPlace类声明和接口函数 以及重载的Write函数 classStoppingPlace private LinkStack pStopPath LinkList pShortcutPath intmaxNumOfStopVehicle intrate boolExistVehicleInStopPath constVehicleType 8 StoppingPlace类的构造函数 StoppingPlace StoppingPlace intn intr maxNumOfStopVehicle n rate r pStopPath newLinkStack pShortcutPath newLinkList