xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

數(shù)據(jù)結(jié)構(gòu) 停車場管理

資源截圖

代碼片段和文件信息

#include
#include
#include
#define?MAX?3?/*定義車庫容量*/
#define?price?0.01?/*定義收費單價*/
typedef?struct?time?{
int?hour;
int?min;
}Time;/*時間結(jié)點*/
typedef?struct?node?{
char?num[10];
Time?reach;
Time?leave;
}CarNode;/*車輛信息結(jié)點*/
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;/*模擬通道信息*/
//******函數(shù)聲明******//
void?InitStack(SeqStackCar?*s);?/*初始化棧*/
int?InitQueue(linkQueueCar?*Q);/*初始化通道*/
int??Arrival(SeqStackCar?*Enter?linkQueueCar?*W);??/*定義到達車輛函數(shù)*/
void?Leave(SeqStackCar?*Enter?SeqStackCar?*Temp?linkQueueCar?*W);/*定義離開車輛函數(shù)*/
void?List1(SeqStackCar?*S)

評論

共有 條評論

相關(guān)資源