• 大小: 269KB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-01-31
  • 语言: C/C++
  • 标签: C  数据结构  

资源简介

本公交车查询系统完全由本人完成,作为算法与数据结构课程的课程设计作品。本程序主要使用C++语言完成,主要是运用了常用的数据结构,比如:链表、栈、队列、图等数据结构,也用了一些数据结构上的经典算法,比如KMP,迪克斯特的最短路径算法。本程序的关键部分都用注释,并且配有Readme.txt以及一个报告,相信你一定能看懂本程序。

资源截图

代码片段和文件信息

#include “Func.h“
#include “DataStructure.h“

void BanciSearch()   //对应于主函数中的case 1
{
cout<<“欢迎使用班次查询功能……“<
stop s[3][MAX];
int index1=0;
int index2=0;
int index3=0;
//31路站点信息
s[0][index1++].name=“烟台港物流园装饰城“;
s[0][index1++].name=“烟台港西门“;
s[0][index1++].name=“烟台汽车总站“;
s[0][index1++].name=“烟台电信营业厅“;
s[0][index1++].name=“烟台电视台“;
s[0][index1++].name=“新龙祥大酒店“;
s[0][index1++].name=“烟台天虹技工学校“;
s[0][index1++].name=“金像泰“;
s[0][index1++].name=“富仕通五金机电市场“;
s[0][index1++].name=“中正机电市场“;
s[0][index1++].name=“联民汽配市场“;
s[0][index1++].name=“发电厂“;
s[0][index1++].name=“只楚集团“;
s[0][index1++].name=“烟台电缆厂“;
s[0][index1++].name=“冰轮芝罘工业园“;
s[0][index1++].name=“APEC芝罘科技园“;
s[0][index1++].name=“五指山路“;
s[0][index1++].name=“飞迈(烟台)机械有限公司“;
s[0][index1++].name=“振华街“;
s[0][index1++].name=“荏原空调“;

//32路站点信息

s[1][index2++].name=“外贸宾馆“;
s[1][index2++].name=“烟台电视台(南大街) “;
s[1][index2++].name=“新龙祥大酒店“;
s[1][index2++].name=“北极星模具公司“;
s[1][index2++].name=“金艺不锈钢厂“;
s[1][index2++].name=“珠玑集团“;
s[1][index2++].name=“烟台客运公司(夕阳红老年公寓)“;
s[1][index2++].name=“烟台酿酒厂“;
s[1][index2++].name=“发电厂“;
s[1][index2++].name=“只楚集团“;
s[1][index2++].name=“烟台电缆厂“;
s[1][index2++].name=“冰轮芝罘工业园“;
s[1][index2++].name=“烟台农业学校“;

//33路站点信息

s[2][index3++].name=“双河东路“;
s[2][index3++].name=“芳华园购物中心(曹家花园小区)“;
s[2][index3++].name=“万光府前花园“;
s[2][index3++].name=“凤凰小区“;
s[2][index3++].name=“中国银行莱山支行“;
s[2][index3++].name=“中信实业银行(北大青鸟学校)“;
s[2][index3++].name=“康惠公司“;
s[2][index3++].name=“山东工商学院“;
s[2][index3++].name=“黄海汽修“;
s[2][index3++].name=“烟台人才市场“;
s[2][index3++].name=“石沟屯(鹿鸣小区)“;
s[2][index3++].name=“电力小区“;
s[2][index3++].name=“迟家“;
s[2][index3++].name=“东海宾馆(前七夼)“;
s[2][index3++].name=“海滨小区“;
s[2][index3++].name=“响水湾山庄“;
s[2][index3++].name=“台湾村“;
s[2][index3++].name=“奇山小区“;
s[2][index3++].name=“塔山市场“;
s[2][index3++].name=“南山隧道东站“;


cout<<“请输入您想查询的班次序号:1. 31路  2. 32路  3. 33路 “< int banci;
cin>>banci;
switch (banci)
{
case 1:
{
for (int i=0;i {
cout<<“站点“< }
}
break;
case 2:
{
for (int j=0;j {
cout<<“站点“< }
}

break;
case 3:
{
for (int k=0;k {
cout<<“站点“< }
}
break;

}



}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         226  2012-01-04 18:10  Readme.txt
     目录           0  2012-01-04 17:54  YtuThinkerBusSearch\
     文件          59  2012-01-02 09:39  YtuThinkerBusSearch\all.h
     文件        2788  2011-12-31 17:47  YtuThinkerBusSearch\BanciFunc.cpp
     文件        4895  2012-01-04 06:03  YtuThinkerBusSearch\DataStructure.cpp
     文件        1789  2012-01-04 07:53  YtuThinkerBusSearch\DataStructure.h
     文件        6295  2012-01-02 12:55  YtuThinkerBusSearch\DidianFunc.cpp
     文件         120  2012-01-03 20:09  YtuThinkerBusSearch\Func.h
     文件        4028  2012-01-04 17:54  YtuThinkerBusSearch\LuxianFunc.cpp
     文件        1456  2012-01-03 20:09  YtuThinkerBusSearch\main.cpp
     文件        5636  2012-01-02 10:41  YtuThinkerBusSearch\UpdateFunc.cpp
     文件        5326  2012-01-03 21:31  YtuThinkerBusSearch\YtuThinkerBusSearch.dsp
     文件         563  2011-12-31 10:15  YtuThinkerBusSearch\YtuThinkerBusSearch.dsw
     文件      123904  2012-01-04 17:54  YtuThinkerBusSearch\YtuThinkerBusSearch.ncb
     文件       51712  2012-01-04 17:54  YtuThinkerBusSearch\YtuThinkerBusSearch.opt
     文件        1776  2012-01-04 17:54  YtuThinkerBusSearch\YtuThinkerBusSearch.plg
     文件      345088  2012-01-07 10:10  YtuThinker算法课程设计报告.doc

评论

共有 条评论