freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

公交車查詢系統(tǒng)設(shè)計畢業(yè)論文(編輯修改稿)

2025-07-19 18:47 本頁面
 

【文章內(nèi)容簡介】 格式正確圖44 兩點間車次查詢流程圖 顯示所有信息 用戶通過輸入最后一種方式,即輸出所有公車的名稱和站點。開始選擇最后一種輸出全部信息輸出全部信息圖45 顯示所有信息流程圖第五章 系統(tǒng)實現(xiàn) 查詢模塊的功能實現(xiàn)公交查詢模塊是用戶與系統(tǒng)進行交互的直接媒介。除了要完成用戶的請求外,更需要從用戶的角度出發(fā),以人為本。查詢模塊除了顯示出簡易的歡迎文字外,直接顯示本系統(tǒng)所提供的幾種查詢方式。從實際出發(fā)對于公交查詢系統(tǒng)而言,用戶輸入公車線路或站點,后臺數(shù)據(jù)庫查詢?yōu)橄到y(tǒng)列出符合條件的公交班次。當系統(tǒng)發(fā)現(xiàn)填寫有誤時,則提示“本系統(tǒng)暫時沒有收錄或該線路不存在,請確定您輸入是否正確”。并且提示是否繼續(xù)或退出。 用戶界面核心代碼公交查詢系統(tǒng)運行界面如圖51所示:核心代碼如下:class userInterface{ char getch。 char choice。 char* frPos。 char* toPos。 char* busName。public: void searchPassWay()。 void searchTrace()。 void searchBuses()。 void showInformation()。 void loop()。 void ifcontinue()。 userInterface()。 ~userInterface()。}。//class userInterfacevoid userInterface::searchTrace(){ busName=new char[10]。 coutendl請輸入路線名(即公交車名):。 cinbusName。 try { bus BUS(busName)。 coutendl。 coutendl。 ()。 } catch(bus::Error) { coutendlsorry! 您要查找的線路:busName ,本系統(tǒng)暫時沒有收錄或者該線路不存在endl請確定您的輸入是否正確endl。 }}//userInterface::searchTracevoid userInterface::searchBuses(){ char* positionName=new char[40]。 coutendl請輸入站點名稱:。 cinpositionName。 try { position POSITION(positionName)。 coutendl。 ()。 } catch(position::Error) { coutendlSorry! 本系統(tǒng)暫時沒有收錄經(jīng)過positionName的線路!endl請確定您的輸入是否正確endl。 } }//userInterface::searchBusesvoid userInterface::searchPassWay(){ coutendl請輸入出發(fā)站點名稱:。 cinfrPos。 coutendl請輸入目標站點名稱:。 cintoPos。 try { position* fromPosition=new position(frPos)。 position* toPosition=new position(toPos)。 fromPositionisThrough(toPosition)。 } catch(position::Error) { coutendlSorry! 本系統(tǒng)暫時沒有收錄經(jīng)過frPos或toPos的線路!endl請確定您的輸入是否正確endl。 }}//userInterface::searchPassWayvoid userInterface::showInformation(){ int i=0。 ifstream in_file。 (source\\, ios::in)。 char* inbus=new char[5]。 coutendl線路信息如下:endl。 while(!()) { in_fileinbus。 ++i。 coutinbus。 if(!()) cout 。 if(!(i%15)) coutendl。 } coutendl。 ()。 (source\\, ios::in)。 char* inpos=new char[40]。 coutendl站點信息如下:endl。 i=0。 while(!()) { in_fileinpos。 ++i。 coutinpos39。 39。 if(!(i%8)) coutendl。 } coutendl。 ()。 delete []inbus。 delete []inpos。}//userInterface::showInformationvoid userInterface::loop(){ coutendl。 cout %%%%%%%%%%%%%%%%%%%%%%%%%%%%endl。 cout % 歡迎使用 公交查詢系統(tǒng) %endl。 cout %%%%%%%%%%%%%%%%%%%%%%%%%%%%endl。 coutendl。 cout本系統(tǒng)能夠:endl。 cout %%%%%o(∩_∩)oo(∩_∩)oo(∩_∩)o%%%%%%%%endl。 cout % == 1. 根據(jù)公交車名查詢路線; %endl。 cout % == 2. 根據(jù)站名查詢經(jīng)過的車次; %endl。 cout % == 3. 查詢兩站間有無車次可通; %endl。 cout % == 4. 得到線路名稱和站點名稱的信息;%endl。 cout %%%%o(∩_∩)oo(∩_∩)oo(∩_∩)o%%%%%%%%%endl。 cout請選擇要查詢的方式(2 、3 or 4):。 cinchoice。 switch(choice) { case 39。139。: searchTrace()。 ifcontinue()。 break。 case 39。239。: searchBuses()。 ifcontinue()。 break。 case 39。339。: searchPassWay()。 ifcontinue()。 break。 case 39。439。: showInformation()。 ifcontinue()。 break。 default: cout您的輸入不正確!。 ifcontinue()。 }}//userInterface::loopvoid userInterface::ifcontinue(){ coutendl是否繼續(xù)查詢(y/n)? 。 cingetch。 if(getch==39。y39。) loop()。 else exit(1)。}//userInterface::ifcontinueuserInterface::userInterface(){ frPos=new char[40]。 toPos=new char[40]。}//userInterface::userInterfaceuserInterface::~userInterface(){ delete []busName。 delete []frPos。 delete []toPos。}//userInterface::~userInterface本系統(tǒng)有4種查詢方式供用戶自行選擇,通過選擇用戶所需的方式進行有目的性的查詢。 根據(jù)公交線路查詢 核心代碼如下:class bus{private: char* name。 char* trackName。 char* upTrack。 char* downTrack。 char* fromTime。 char* toTime。 char* price。 int isExist(char*)。 void initialize()。public: bus(char* n)。 ~bus()。 char* note。 void pr
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1