登录
首页 » 数据结构 » 停车场管理系统的源代码

停车场管理系统的源代码

于 2023-04-01 发布 文件大小:7.39 kB
0 109
下载积分: 2 下载次数: 1

代码说明:

由于停车场是一个狭窄通道,而且只有一个大门可供汽车进出,问题要求汽车停车场内按车辆到达时间的先后顺序,依次由北向南排列。由此很容易联想到数据结构中的堆栈模型,因此可首先设计一个堆栈,以堆栈来模拟停车场,我设计用顺序存储结构来存储停车场内的车辆信息,并给车辆按进栈顺序编号,当停车场内某辆车要离开时,在他之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入停车场。这是个一退一进的过程,而且让道的汽车必须保持原有的先后顺序,因此可再设计一个堆栈,以之来暂时存放为出站汽车暂时让道的汽车。当停车场满后,继续进来的汽车需要停放在停车场旁边的便道上等候,若停车场有汽车开走,则按排队的先后顺序依次进站,最先进入便道的汽车将会最先进入停车场,这完全是一个先进先出模型,因此可设计一个队列来模拟便道,队列中的数据元素设计成汽车的车牌号,并以链表的形式存储。另外,停车场根据汽车在停车场内停放的总时长来收费的,在便道上的时间不计费,因此必须记录车辆进入停车场时的时间和车辆离开停车场时的时间,然后计算、显示费用情况。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • introduced a total of four ranking functions : insertion sort, bubble sort, sele...
    书中共介绍了四类排序函数:插入排序、起泡排序、选择排序、快速排序。我们需要建立一个无序随机序列,分别用上述排序方法对建立的无序序列有序化,编写相应的程序计算每种算法的赋值次数、比较次数以及所用时间,以此为依据来判断各种算法的效率。-introduced a total of four ranking functions : insertion sort, bubble sort, select, in order of Quick Sort. We need to build a disorderly random sequence, the use of such methods of sequencing to establish an orderly sequence of the disorder, and the preparation of the corresponding procedures of each algorithm for the calculation of frequency assignment, as well as comparison with the number of time, using this as the basis to judge the efficiency of algorithms.
    2023-05-03 00:20:03下载
    积分:1
  • SQL开发指南
    SQL开发指南-SQL Development Guide
    2022-01-21 02:27:51下载
    积分:1
  • 学生信息程序
    描写了学生信息管理系统所需要的学生的性别 年龄 成绩 学号等等,可以输出学生信息的平均分和各科成绩,以及相对应的年龄  性别
    2022-06-18 05:01:51下载
    积分:1
  • mechanical stress Check
    材料力学应力校核-mechanical stress Check
    2023-04-29 03:20:03下载
    积分:1
  • Matlab入门篇介绍了一些基本的Matlab语句。并且有丰富的实例。...
    Matlab入门篇介绍了一些基本的Matlab语句。并且有丰富的实例。-chapter introduces some basic Matlab statement. And there are abundant examples.
    2022-03-11 22:13:01下载
    积分:1
  • poorteymoor
    阿萨达达德
    2022-08-26 01:49:36下载
    积分:1
  • An introduction to Data Access Objects
    An introduction to Data Access Objects
    2022-02-22 02:49:05下载
    积分:1
  • An ACCESS database on VC6.0 with the combination of examples of small programs
    一个有关VC6.0与数据库为ACCESS结合的小程序例子-An ACCESS database on VC6.0 with the combination of examples of small programs
    2022-03-16 14:15:06下载
    积分:1
  • 界面效果,用ACCESS编写的程序界面
    界面效果,用ACCESS编写的程序界面
    2022-08-06 15:48:18下载
    积分:1
  • 本书是关于计算机科学与工程领域的基础性研究科目之一――与算法的专著。 本书在简要回顾了基本的C++ 程序设计概念的基础上,全面系统地介绍了队列、堆栈、树
    本书是关于计算机科学与工程领域的基础性研究科目之一――数据结构与算法的专著。 本书在简要回顾了基本的C++ 程序设计概念的基础上,全面系统地介绍了队列、堆栈、树、图等基本数据结构,以及贪婪算法、分而治之算法、分枝定界算法等多种算法设计方法,为数据结构与算法的继续学习和研究奠定了一个坚实的基础。更为可贵的是,本书不仅仅介绍了理论知识,还提供了50多个应用实例及600多道练习题。 本书内容广博权威,结构清晰合理,是一本全新的有关数据结构与算法的教材,对于计算机科学与工程领域的从业人员也是一本很好的参考书。-the book is on the computer science and engineering fields, the basis for one of the subjects of study-- data structure and algorithm monographs. The book in a brief review of the basic design concept C program on the basis of a comprehensive and systematic introduction of the queue, stack, trees and map basic data structure and the greedy algorithm, divide and conquer algorithm, branch-and-bound algorithm multiple algorithm design methods, data structures and algorithms for continuous learning Research and lay a solid foundation. Even more valuable is that the book not only on the theoretical knowledge but also provided more than 50 application examples and more than 600 Exercises Road. The contents broad authority, a clear and reasona
    2022-01-21 04:28:51下载
    积分:1
  • 696518资源总数
  • 105622会员总数
  • 12今日下载