【正文】
h[i]=1。 if(n!=1) cout。 int j=0。 } s[u]=1。 if(i!=vamp。 } } 求到某一景點(diǎn)的路徑 void Graph::shortpath1() { int v,v1。j++) { cout請輸入要撤銷的景點(diǎn)編號 :。 cout修改成功 !endl。 } for(i=0。 cinvivjw。 } numE=0。 查詢景點(diǎn)模塊 :void select()查找某景點(diǎn)的信息。//查找某景點(diǎn)的信息。然后是詳細(xì)設(shè)計,描述實(shí)現(xiàn)概要設(shè)計中定義的 基本功操作和所有數(shù)據(jù)類型,以及函數(shù)的功能及代碼實(shí)現(xiàn)。本課程設(shè)計的題目為 “故宮導(dǎo)游咨詢”,完成相應(yīng)的錄入信息、查找、修改、刪除、計算功能等等。 void delet()。 查詢到 查詢到所有景點(diǎn)的最短路徑 :void shortpath2()查詢到所有景點(diǎn)的最短路徑 3 詳細(xì)設(shè)計 結(jié)構(gòu)體定義 景點(diǎn)的結(jié)構(gòu)體定義如下: struct ding { string dingdian。 cout輸入添加景點(diǎn)名稱 :endl。 numV=y+numV。 Edge[vj1][vi1]=w。 cina。 Edge[i][v1]=MAXweight。 cinc。 故宮導(dǎo)游咨詢 10 dist[v]=0。Edge[u][w]MAXweightamp。 cout大約需要走 dist[i]/100分鐘 。 cinb。i++) { float min=MAXweight。 path[w]=u。 } while(k!=v)。inumV。amp。dist[i]!=MAXweight) { string c[10]。n) { coutc[n]。 if(c==39。 cout*** 請選擇 (A、 B、 C、 D、 E) ***endl。D39。 cout*** A、查詢信息 ***endl。C39。 查詢到所有景點(diǎn)的最短路徑 : 此算法為迪杰斯特拉算法時間復(fù)雜度為 O(n*n)。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept it. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39。t start planning... Those years, those days of do, finally, like youth, will end in our life. 此刻,天空是陰暗的,空氣里有著剛下過雨之后的清新因子。嫌惡過自己的怯懦,最終卻發(fā)現(xiàn)有很多 緣分 ,有很多錯過,好像冥冥之中真的已經(jīng)注定。s plaint. In a statement the Russian side added: We found no racist insults from fans of CSKA. Age has reached the end of the beginning of a word. May be guilty in his seems to passing a lot of different life became the appearance of the same day。 [3] 楊秀金,數(shù)據(jù)結(jié)構(gòu) (C++版 ) .高等教育出版社 .2021 年 4月 。 算法時間復(fù)雜度 錄入:時間復(fù)雜度為 O(n)。 system(pause)。) { char b。 system(pause)。 cout********************************endl。 cout****** A、管理員 ******endl。 k=path[k]。dist[u]+Edge[u][w]dist[w]) { dist[w]=dist[u]+Edge[u][w]。inumV。 cout輸入你所在的景點(diǎn) :。 coutdist[i]米 。wnumV。dist[i]MAXweight) path[i]=v。n) { coutc[n]。dist[i]!=MAXweight) { string c[10]。 min=dist[j]。 s[i]=0。 故宮導(dǎo)游咨詢 9 } else cout不存在該路線 !endl。jk。 b++。 cinVertices[i].xinxi。i++) { cout輸入添加景點(diǎn)到景點(diǎn)的路徑的長度 (vi,vj,length):。 else Edge[i][j]=MAXweight。 } 各功能模塊 錄入模塊 :void Creat()錄入景點(diǎn)和路徑的信息,并儲存。 void select()。 其次是概要設(shè)計,說明所有抽象數(shù)據(jù)類型的定義、主程序的流程以及各程序模塊之間的層次關(guān)系,以及 ADT 描述。本課程設(shè)計采用的編程環(huán)境為 Microsoft Visual Stdio 。//刪除景點(diǎn)和路徑信息。 string xinxi。 for(i=0。 } 故宮導(dǎo)游咨詢 6 、錄入信息 void Graph::Creat() { int i,vi,vj,w。 } } 修改操作 void Graph::xiugai() { string a,c。 for(int i=0。 } } cout撤銷成功 !endl。 for(int i=0。 for(i=0。amp。 故宮導(dǎo)游咨詢 11 cout路徑為 :。 for(int i=0。 int u=v。 } } 故宮導(dǎo)游咨詢 13 for( i=0。 j++。i++) { dist[i]=Edge[v][i]。dist[j]min) { u=j。 int j=0。 if(n!=1) cout。A39。 cout********************************endl。) { ()。 cout*** B、查詢到景點(diǎn)的最佳路徑 ***endl。) { ()。 經(jīng)驗和體會 在本次課程設(shè)計中主要是對圖的數(shù)據(jù)結(jié)構(gòu)操作,所有剛開始對知識不是很熟悉操作起來有一定難度,容易在程序的關(guān)鍵地方但經(jīng)過翻閱教材能較好的解決問題 。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。t really grow up, it seems is not so important。突然想到那件藍(lán)格子襯 衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場還沒有開始就宣告了終結(jié)的邂逅計劃 …… 那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時候是最后又打起了退堂鼓。s actions. CSKA said they were surprised and disappointed by Toure39。 [2] 嚴(yán)蔚敏,吳偉民 .