师范学院
车辆离开停车场开始
数据结构项目课程
获取车辆离开信息和时间
计算时间差运算停车费用
是判断便道中是否有车
输出车辆现在停止在便道位置
否等待车辆离开
输出离开停车场信息和收费金额
车辆离开停车场更新栈表
结束
f安阳师范学院
数据结构项目课程
四、系统使用说明
运行环境为VC60,如果需要在VS上运行需要改动sca
f函数为sca
f_s运行截图
f安阳师范学院
数据结构项目课程
f安阳师范学院
数据结构项目课程
附源码
i
cludestdiohi
cludestdlibhi
cludestri
ghi
cludemathhi
cludetimeh
f安阳师范学院
数据结构项目课程
defi
eOK1defi
eERROR0
typedefstructtime1chartimes100lo
gtime2time1
typedefstruct
odechar
um10time1reachtime1leaveCar
typedefstructStackCarstack100i
ttopSqStack
typedefstructcarCardatastructcar
extQNode
typedefstructNode
f安阳师范学院
QNodefro
tQNoderearLi
kQueue
数据结构项目课程
voidpri
tCarpi
troomi
tMAXfloatpricei
tarriveSqStackI
Li
kQueueWi
tMAXfloatpricevoidleaveSqStackI
SqStackOutLi
kQueueWi
tMAXfloatpricevoidi
fo1SqStackSvoidi
fo2Li
kQueueWvoidi
foSqStackSLi
kQueueWvoidI
itStackSqStacksi
tMAXi
tI
itQueueLi
kQueueQ
voidmai
SqStackI
OutLi
kQueueWaiti
tchi
tMAXfloatpricepri
tf