编辑代码

#include <stdio.h>
#include<stdlib.h>
struct Stack{
    int top;
    int data[10];
    int intime;
    int outtime;
};//停车场最大容量为10

void initstack(struct Stack stack){
    stack.top=-1;
}
int testStack(struct Stack stack )//判断栈空
{
	return (S.top == -1);//空栈返回1,反之返回0。
}
1.void Stackinput(struct Stack stack,int number,int intime){
    if(top==9);
    stack.top++;
    stack.data[top]=n;
    stack.intime=intime;
}
2.int Stackpop(){
    if(top==-1);

}
int Stackfull(struct Stack stack )//判断栈满
{
	return (S.top == 9);//满栈返回1,反之返回0。
}
typedef struct qNode{
	int data;//整型数据(可以根据需要修改数据类型) 
	struct qNode *next;
};
struct Queue{
	queue front;
	queue rear;
};
void initQueue(Queue &Q){
	Q.front=Q.rear=(queue)malloc(sizeof(qNode));//队头指针、队尾指针指向同一空结点 
	Q.front->next=NULL;
}



int main () {


	return 0;
}