鐵路售票管理系統課程設計總結
① SQL課程設計 火車售票管理系統求人做
SQL課程設計 火車售票管理系統這個很簡單啊。
② 急求!!火車票售票系統資料庫課程設計
課程設計還是自己動手吧,拿來主義並不好,害人害已的也沒意思.
讀書就是為了能學到東西.你總不想不學無術吧.
③ 數據結構課程設計 鐵路票務管理系統
#include<fstream>
#include<iostream>
#include<string>
#include<stdio.h>
#include<iomanip>
#define SIZE_view 50
#define SIZE_line 100
#define SIZE_way 300
#define MAXNODE 30 //定義最多的頂點數
#define MAXCOST 1000
//自己寫的頭文件
//#include<addview.h>// //
using namespace std;
struct view_info /*城市信息結構*/
{
int id;
char name[20];
int code;
char shortname[20];
char LName[100];// 經過此車站的鐵路線名稱
} views[SIZE_view];
struct line_info //鐵路線信息結構
{
int Lid;
char LName[20];
int start_id; //始發站id
int end_id; //終點站id
int dist; //鐵路線長度
int sign;//通行標志
}lines[SIZE_line];
struct way_info //鐵路度的信息結構
{
int station1;
int station2;
int dist;
}ways[SIZE_way];
struct path_info //用於最短路徑的查詢
{
int count;
int path[SIZE_view];
};
int view_count,line_count,way_count;//用來存儲文件中有多少條記錄
void readviews()
{
int i;
ifstream infile("views.txt",ios::in); //打開文件
infile >>view_count ; //把文件中的記錄賦值給view_count
if(!infile) //打開文件失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
//infile>>view_count; // 先讀入文件個數
for(i=0;i<view_count;i++)
{
infile>>views[i].id>>views[i].name>>views[i].code>>views[i].shortname>>views[i].LName;
}
//view_count=i;//給出原文件中車站的個數
infile.close();
cout<<" "<<"id"<<" "<<"name"<<" "<<"code"<<" "<<"shortname"<<" "<<"LName"<<endl;
for(i=0;i<view_count;i++)
cout<<" "<<views[i].id<<" "<<views[i].name<<" "<<views[i].code
<<" "<<views[i].shortname<<" "<<views[i].LName<<endl;
}
void readways() //讀文件ways.txt
{
int i;
ifstream infile("ways.txt",ios::in); //打開文件
infile>>way_count; ////把文件中的記錄賦值給way_count
if(!infile) //打開文件失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
for(i=0;i<way_count;i++)
infile>>ways[i].station1>>ways[i].station2>>ways[i].dist;
infile.close();
//測試用,輸出路段的信息
cout<<" "<<"station1"<<" "<<"station2"<<" "<<"dist"<<endl;
for(i=0;i<way_count;i++)
cout<<" "<<ways[i].station1<<" "<<ways[i].station2<<" "<<ways[i].dist<<endl ;
}
void readlines() //讀文件lines.txt
{
int i;
ifstream infile("lines.txt",ios::in); //打開文件
infile>>line_count; //把文件中的記錄賦值給line_count
if(!infile) //打開文件失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
for(i=0;i<line_count;i++)
infile>>lines[i].Lid>>lines[i].LName>>lines[i].start_id>>lines[i].end_id>>lines[i].dist>>lines[i].sign;
infile.close();
/*
cout<<" "<<"Lid"<<" "<<"LName"<<" "<<"start_id"<<" "<<"end_id"<<" "<<"dist"<<" "<<"sign"<<endl;
for(i=0;i<view_count;i++)
cout<<" "<<lines[i].Lid<<" "<<lines[i].LName<<" "<<lines[i].start_id
<<" "<<lines[i].end_id<<" "<<lines[i].dist<<" "<<lines[i].sign<<endl;
*/ //這里是輸出文件中的信息
}
void search () //查詢車站信息(所在的鐵路線)
{
cout<<"please enter the station name:";
char sta_name[20];
cin>>sta_name; //輸入要查詢的名字
cout<<endl;
ifstream infile("views.txt ",ios::in); //讀文件
infile >>view_count ; //讀出文件記錄的個數
if(!infile) //打開文件失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
int i,mark;
for(i=0;i<view_count;i++)
infile>>views[i].id>>views[i].name>>views[i].code>>views[i].shortname>>views[i].LName;
infile.close();
for(i=0;i< view_count;i++)
{
if(strcmp(sta_name,views [i].name)==0) //找到車站
{
cout<<"the station's informations is:\n"<<endl;
cout<<" "<<"id"<<" "<<"name"<<" "<<"code"<<" "<<"shortname"<<" "<<"LName"<<endl;
cout<<" "<<views[i].id<<" "<< views[i].name<<" "<< views [i].code
<<" "<< views [i].shortname<<" "<< views [i].LName <<endl;
break;
}
mark=i;
}
if(mark==( view_count -1)) //若沒有找到,輸出提示
{
cout<<"sorry,the station is not in here"<<endl;
}
}
void addview()
{
cout<<"please enter the new view's informations:"<<endl; //輸入新車站信息
cout<<"id:";
cin>>views[view_count].id;
cout<<"name:";
cin>>views[view_count].name;
cout<<"code:";
cin>>views[view_count].code;
cout<<"shortname:";
cin>>views[view_count].shortname;
cout<<"LName:";
cin>>views[view_count].LName;
ofstream outfile("views.txt",ios::app); //打開views文件,並且寫入數據
outfile<<view_count<<endl;
if(!outfile) //文件打開失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
outfile<<views[view_count].id<<" "<<views[view_count].name<<" "<<views[view_count].code
<<" " <<views[view_count].shortname<<" "<<views[view_count].LName<<endl;
//在文件末尾添加
view_count=view_count+1;
outfile.close(); //關閉文件
cout<<"successfully! the new station is added"<<endl;
cout<<"now station number is:"<<view_count<<endl;
}
void addway()
{
cout<<"please enter the new way's informations:"<<endl; //輸入新車站信息
cout<<"station1:";
cin>>ways[way_count].station1; // station1的id
cout<<"station2:";
cin>>ways[way_count].station2; //station2的id
cout<<"dist:";
cin>>ways[way_count].dist; //路段的長度
ofstream outfile("ways.txt",ios::app); //打開way.txt文件
outfile<<way_count<<endl;
if(!outfile) //文件打開失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
outfile<<ways[way_count].station1<<" "<<ways[way_count].station2<<" "<<ways[way_count].dist;
//在文件末尾添加
outfile.close(); //關閉文件
cout<<"successfully! the new station is added"<<endl;
way_count=way_count+1;
cout<<"now station number is:"<<view_count<<endl;
}
void addline()
{
cout<<"please enter the new line's informations:"<<endl; //輸入新鐵路線信息
cout<<"Lid:";
cin>>lines[line_count].Lid;
cout<<"LName:";
cin>>lines[line_count].LName;
cout<<"start_id:";
cin>>lines[line_count].start_id;
cout<<"end_id:";
cin>>lines[line_count].end_id;
cout<<"dist:";
cin>>lines[line_count].dist;
cout<<"sign:";
cin>>lines[line_count].sign;
ofstream outfile("lines.txt",ios::app); //打開文件
outfile <<line_count << endl;
if(!outfile) //文件打開失敗
{
cerr<<"open error!"<<endl;
exit(1);
}
outfile<<lines[line_count].Lid<<" "<<lines[line_count].LName<<" "<<lines[line_count].start_id
<<" " <<lines[line_count].end_id<<" "<<lines[line_count].dist<<lines[line_count].sign<<endl;
//在文件末尾添加
outfile.close(); //關閉文件
cout<<"successfully! the new line is added"<<endl;
line_count=line_count+1;
cout<<"now line number is:"<<line_count<<endl;
}
//-----------------------------------------------------------------------------------
void floyed() //弗洛伊德(Floyed)演算法
{
int i, j, k, m, start_num, end_num; //i,j用來表示起始點和終點
int dist_list[SIZE_view][SIZE_view]; //定義了一個數組
view_count=view_count+1;
struct path_info path_list[SIZE_view][SIZE_view]; //定義了一個path_info結構的變數,包含著count和path[]用來存儲經過的路徑
for(i=1;i<=view_count;i++) //這里開始讀文件,先讓所有的線都為最大值
for(j=1;j<=view_count;j++)
dist_list[i][j]=MAXCOST;
for(int t=0;t<=way_count;t++)
{
i=ways[t].station1;
j=ways[t].station2;
dist_list[i][j]=ways[t].dist;//把文件中的數據賦值給dist_list[i][j]=ways[t].dist;形式
}
for (i =0; i< view_count; i++)
{
for (j= 0; j<view_count; j++)
{
if (i == j)
{
dist_list[i][j] = 0;
continue;
}
dist_list[i][j] = -1;
path_list[i][j].count = 0;
for (k = 0; k< way_count; k++) //
{
if (ways[k].station1 == i && ways[k].station2 == j) //把起始點和終點分別給予i,j
{
dist_list[i][j] = ways[k].dist;
path_list[i][j].count = 2;
path_list[i][j].path[0] = i;
path_list[i][j].path[1] = j;
break;
}
}
}
}
for (k = 0; k<= view_count-1; k++)
{
for (i = 0; i < view_count; i++)
for (j = 0; j< view_count; j++)
{
if (i == k || j == k || i == j)
continue;
if (dist_list[i][k] == -1 || dist_list[k][j] == -1)
continue;
if ( (dist_list[i][j] == -1) ||
((dist_list[i][j] != -1) &&(dist_list[i][k] + dist_list[k][j] < dist_list[i][j])))
{
dist_list[i][j] = dist_list[i][k] + dist_list[k][j];
// shortest[i][j]=shortest[i][k]+shortest[k][j];
path_list[i][j].count = path_list[i][k].count + path_list[k][j].count - 1;
// path[i][j]=k;
for (m = 0; m < path_list[i][k].count; m++)
path_list[i][j].path[m] = path_list[i][k].path[m];
for (m = 0; m < path_list[k][j].count; m++)
path_list[i][j].path[m+path_list[i][k].count] = path_list[k][j].path[m+1];
}
}
}
cout<<" Floyed table:\n";
cout<<" All views in the school:\n";
for (i = 0; i < view_count-1; i++)
cout<<" "<<i+1<<":"<<views[i].name<<endl;
cout<<" Please input the start number: ";
cin>>start_num;
cout<<" Please input the end number: ";
cin>>end_num;
cout<<endl<<endl;
cout<<"From"<<views[start_num-1].name<<"to"<<views[end_num-1].name;
if (dist_list[start_num][end_num] == -1)
cout<<"no way."<<endl;
else
{
cout<<"distance is "<<dist_list[start_num][end_num]<<", and path is :";//dist_list[][]用來表示兩點間的長度
k = path_list[start_num][end_num].path[0]-1; //path_list[][]用來保存路徑path[m]在這里表明是通過的那個車站的
cout<<views[k].name;
for (m = 1; m < path_list[start_num][end_num].count; m++)
{
k = path_list[start_num][end_num].path[m]-1; //這里應該也是int型,k是經過的路徑的id
cout<<"->"<<views[k].name;
}
}
cout<<endl<<endl;
}
void main()
{
readviews();
readlines() ;
readways();
while(1)
{
int menu;
cout<<endl<<endl<<endl<<endl;
cout<<" 全國鐵路運輸網最佳經由系統 "<<endl;
cout<<"**********************************************************"<<endl;
cout<<" 1:增加車站信息 "<<endl;
cout<<" 2:增加鐵路線信息 "<<endl;
cout<<" 3:查詢車站信息 "<<endl;
cout<<" 4:查詢最短路徑 "<<endl;
cout<<" 5:退出界面 "<<endl;
cout<<"**********************************************************"<<endl;
cout<<"輸入要進行的操作的代碼(1--5):"<<endl;
cin>>menu;
while(menu<1||menu>5)
{
cout<<"error!please enter again:";
cin>>menu;
}
switch(menu)
{
case 1:
while(1)
{
addview();
while (1)
{
addway();
cout<<"do you want to continue (y/n) "<<endl;
char con ;
cin>>con;
if(con=='y')
addway();
else
break;
}
cout<<"do you want to continue (y/n) "<<endl;
char con ;
cin>>con;
if(con=='y')
addview();
else
break;
}
break;
case 2:
while(1)
{
addline();
cout<<"do you want to continue (y/n) "<<endl;
char con ;
cin>>con;
if(con=='y')
addline();
else
break;
}
break;
case 3:
while(1)
{
search ();
cout<<"do you want to continue (y/n) "<<endl;
char con ;
cin>>con;
if(con=='y')
search ();
else
break;
}
break;
case 4:
while(1)
{
floyed();
cout<<"do you want to continue (y/n) "<<endl;
char con ;
cin>>con;
if(con=='y')
floyed();
else
break;
}
break;
case 5:
{
cout<<"謝謝使用,再見!"<<endl;
exit(1);
}
}
}
}
④ 火車站售票管理系統_畢業論文
去鐵道出版社買鐵路客票發售與預訂系統的用戶手冊,有詳細的介紹,5.0版的全套9本400元,你可以根據需要買其中的幾本。
⑤ 火車站售票管理系統
火車站售票管理系統一般都是C/S架構實現的,以前常用VB,VC等實現,現在也有.NET版本和回JAVA版的,答不過還是微軟的一套東西更容易做。呵呵,給你找了份VB6.0的,參考一下吧。希望對你有幫助。
http://www.jsjpaper.org/vb/13083.html
⑥ 課程設計,做一個鐵路客運售票系統,用java做,我完全不知道這個怎麼做,求一高手指點一下,我要瘋了
先設計資料庫表,然後用SSH框架實實現,這是大的思路,具體的細節還很多,你自己多網路一下,查查資料就能找到。
⑦ 鐵路售票員工作總結範文
時間一晃而過,隨著緊湊但不緊張的工作節奏,我已在公司工作快一個月了,在這段時間我領悟到收獲到很多知識,這些對於我從學生到一個職業人的轉變具有重要好處,工作的過程讓我在心態上不斷的調整不斷的成熟。
來西北部客運站一個月了,此刻對那裡的工作和生活也算熟悉了,剛開始還很擔心,不知如何與同事共處如何做好工作,每一天上班都要和各種各樣的人打交道,有時也遇到不理智的人對收費標准或者保險問題感不滿,出言不遜,滿腹牢騷時我的情緒狠不好。
在來站上以前從來沒有被人這么罵過,個性是富民,祿勸,東村這些短途乘客,有很多都不講理,但依然要持續平和心態,情緒特不好,可過後想想也沒必要難過,好多時候只要忍過了就沒事了,當然也有素質好的客人會很好的配合我們的工作,這也是對我工作的肯定和鼓勵。
很多人認為售票是狠枯燥乏味的工作,但我既然來參加這項工作,就要干好這一行,無論什麼崗位我們只要認真,細心,負職責就能夠做好,我必須要做到特能吃苦,特能忍受,將自己的工作做好。
在今後的工作中,我會遵守各項規章制度,認真工作,我將努力提高自身素質,克服不足,兢兢業業做好本職工作,熱情,用心,認真的完成崗位職責,學無止境,時代發展瞬息萬變,各種知識日新月異,我將堅持不懈努力學習,提高自己解決問題和突發問題的潛力,並在工作過程中慢慢克服急躁情緒,用心,熱情的對待每一個客人。