停车场管理系统源代码.docVIP

  • 215
  • 0
  • 约4.53千字
  • 约 6页
  • 2018-07-05 发布于福建
  • 举报
/*停车场管理系统*/ #includestdio.h #includestdlib.h #includestring.h /*------------------------------------------------------------------------------*/ #define MAX 2 /*车库容量*/ #define price 0.05 /*每车每分钟费用*/ typedef struct time{ int hour; int min; }Time; /*时间结点*/ typedef struct node{ char num[10]; Time reach; Time leave; }CarNode; /*车辆信息结点*/ typedef struct NODE{ CarNode *stack[MAX+1]; int top; }SeqStackCar; /*模拟停车场的栈*/ typedef struct car{ CarNode *data; struct car *next; }QueueNode; typedef struct Node{ QueueNode *head; QueueNode *rear; }LinkQueueCar; /*模拟便道的队列*/ /*-------------------------------------

文档评论(0)

1亿VIP精品文档

相关文档