摘要:
#include#include#include//函数返回状态代码#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define INFEASIBLE -1#define OVERFLOW -2#define SIZE 2//停车场位置数typedef int Status;//栈,模拟停车场typedef struct Car1{//车 int number;//汽车车号int ar_time;//汽车到达时间}CarNode;typedef struct{//停车场 CarNode *base;//停车场的堆栈底CarNod 阅读全文