编辑代码

#include <stdio.h>
#include<stdlib.h>
struct car
{

    int timeIn;              // 进入停车场时间
    int timeOut;             // 离开停车场时间
    char plate[10];
    // 汽车牌照号码,定义一个字符指针类型
};

// 停放栈(用于停放车辆)
struct stop
{
    struct car Stop[10];   // 用于停放车辆的栈
    int top;                  // 标记栈顶位置
}s;

// 等候队列
struct waiting
{
    int count;                // 用来指示队中的数据个数
    struct car Pave[10];   // 等候停车的队列
    int front, rear;          // 标记队头和队尾位置
}w;

struct node{
    struct car wat;
    struct node*next;
};
struct qnode{
    struct node *front,*rear;
    int num;
}p;
void initqnode(struct qnode p){
    struct node*q=(struct node*)malloc(sizeof(struct node));
    q->next=null;
    p.front=p.rear=q;
}

// 让路栈
struct buffer
{
    struct car Help[MAX_STOP];   // 用于让路的队列
    int top;                  // 标记站定位置
}b;

int main () {



	return 0;
}