模拟停车b场管理系统.docVIP

  • 4
  • 0
  • 约1.03万字
  • 约 12页
  • 2016-12-21 发布于湖南
  • 举报
模拟停车场管理系统 #includeiostream.h #includestdlib.h #includestring.h #includestdio.h #define MAX_PARK 5 #define X 1.2 #define PN 5 typedef struct //车辆信息; { char license[PN]; float time; char state;//q表示停在便道上,p表示停在停车场; }Car; typedef struct //模拟停车场; { Car Park[MAX_PARK]; int top; }ParkStack; typedef struct qnode //链表结点; { Car data; struct qnode* next; }Qnode; typedef struct //模拟便道; { Qnode *front,*rear; }RoadQueue; typedef struct //车出站时其前面车辆的储存位置; { Car buffer[MAX_PARK]; int top; }BUFFER; Car ini_car() //初始化汽车信息; { Car machine; cout请输入车牌号:; cinmachine.license; machin

文档评论(0)

1亿VIP精品文档

相关文档