资源简介
本公交车查询系统完全由本人完成,作为算法与数据结构课程的课程设计作品。本程序主要使用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
- 上一篇:页式存储管理FIFO实现
- 下一篇:c语言学生管理系统,可运行,有报告
相关资源
- c语言学生管理系统,可运行,有报告
- Microsoft Visual C++ 20XX运行库合集vc2005
- Microsoft.Visual.C++.NET技术内幕第六版
- MFC制作的飞机大战游戏
- MFC课程设计学生管理系统
- C语言程序设计教程(第3版)谭浩强张
- Effective C++中文版第三版 高清PDF
- 常用算法程序集C语言及C++描述第五版
- 坦克大战90源程序代码 精确到象素级
- 自动解决智能拼图,A*算法+生成可解
- 可以在单片机上计算的BP神经网络C语
- C语言银行业务
- 银行管理系统.cpp
- c++常见笔试试题及答案
- NOIP2018普及组C++试题答案
- C++写的商店管理系统
- 潮流计算C++程序
- 成绩管理系统VC++6.0
- 台湾林智仁开发的libsvm-3.0.1
- 计算机二级C语言机考题库
- C++ Primer中文第五版.zip
- vs2013登录界面mfc
- FPS射击游戏《林海雪原》完整c++源代
- Microsoft Visual C++.NET技术内幕
- C和指针(高清扫描版-带书签).pdf
- VC++6.0技术内幕第五版中文版+英文版
- Visual C++ 网络高级编程PDF 源代码
- Visual C++开发基于SNMP的网络管理软件
- MFC平台C++语言的小游戏代码
- 基于MFC的图像的拼接系统
评论
共有 条评论