資源簡介
簡易停車管理系統,不坑》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》
代碼片段和文件信息
/*?文件名:depot.c
?*?作者:王永超;
?*?版本:1.0;
?*?摘要:停車管理系統;
?*/
#include
#include
/*?文件名:depot.c
?*?作者:王永超
?*?摘要:實現停車管理系統的主函數
?*/
#include“Stack.h“
#include“Queue.h“
#include“input.h“
//隊列遍歷函數
void?visit(ElemType?e)
{
printf(“%d\n“e);
}
//棧的遍歷函數
State?search(ElemType?e)
{
printf(“%d\n“e);
}
//停車函數
void?stopCar(SeStack?*stopQueuelink?*waitElemType?e)
{
int?stopsize;//停車場空位
int?waitsize;//等待車輛數
int?flag;//選擇標志符
printf(“**********************\n“);
printf(“歡迎使用停車管理服務:\n“);
printf(“\n“);
//查詢停車場空位
stopsize?=?STACK_INIT_SIZE-SeStackLength(stop);
printf(“停車場空位:%d\n“stopsize);
if(stopsize?>?0)//判斷是否能進行停車
{
printf(“你可以進行停車!“);
printf(“請輸入你的車牌號(三位車牌號碼):“);
e?=?gain();
????????????????while(e?==?0)
????????????????{
????????????????????????printf(“請輸入你的車牌號(三位車牌號碼
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-11-22?09:25??depot\
?????文件????????3568??2017-11-20?00:31??depot\#Queue.c#
?????文件?????????230??2017-11-19?21:19??depot\Commen.h
?????文件????????3571??2017-11-20?01:07??depot\Queue.c
?????文件????????1809??2017-11-20?01:02??depot\Queue.h
?????文件????????3274??2017-11-20?03:34??depot\Stack.c
?????文件????????3266??2017-11-17?02:11??depot\Stack.c~
?????文件????????1751??2017-11-19?21:31??depot\Stack.h
?????文件???????11603??2017-11-21?01:09??depot\depot
?????文件????????8860??2017-11-21?01:09??depot\depot.c
?????文件?????????865??2017-11-21?01:11??depot\input.c
?????文件?????????243??2017-11-21?00:47??depot\input.h
?????文件????????7047??2017-11-20?03:34??depot\main
?????文件????????1680??2017-11-20?02:25??depot\main.c
- 上一篇:房貸計算器
- 下一篇:小學生四則運算c++
評論
共有 條評論