停车管理系统c语言实现,c语言实现停车场管理系统
数据结构实验,c语言实现停车场管理系统
#include
#include
#include
#define Size 2
#define price 5
typedef struct {
char num[20];
int reachtime;
int leavetime;
}carinfo;
typedef struct stack
{ carinfo car[5];
int top;
}Stack;
typedef struct Node{
carinfo data;
}QueueNode;
typedef struct {
QueueNode *front;
QueueNode *rear;
}Queue,*linkQueue;
int EnterQ(Queue *Q,carinfo x);
int inistack(Stack *S) //初始化栈
{
S->top=-1;
return 1;
}
void Push(Stack *S,carinfo x) //进栈操作
{
S->top++; S->car[S->top]=x; printf("进站成功!"); struct Node *next;
}
void Pop(Stack *S,carinfo x) //出栈操作
{
if(S->top=-1)
printf("空栈,无法出栈!");
上一篇: C/C++停车场管理系统[2023
下一篇: C语言编写停车场系统(有漏洞)