91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

算法描述,采用C++描述數據結構中歐洲旅行的最短路徑問題。

資源截圖

代碼片段和文件信息

#pragma?warning?(disable:4786)

#pragma?warning?(disable:4503)

#include?

#include?

#include?

#include?

#include?

#include?

#include?“City.h“

#include?“Service.h“

#include?“RailSystem.h“

using?namespace?std;

int?main(int?argc?char*?argv[])?{

????try?{

????????RailSystem?rs(“services.txt“);

????????while?(true)?{

????????????cerr?<
????????????string?from?to;

????????????cin?>>?from;

????????????if?(from?==?“quit“)?break;

????????????cin?>>?to;

????????????if?(rs.is_valid_city(from)?&&?rs.is_valid_city(to))?{

????????????????rs.output_cheapest_route?(from?to?cout);

????????????}

????????????else?{

????????????????cout?<
????????????}

????????}

????????return?EXIT_SUCCESS;

????}

????catch?(exception&?e)?{

????????cerr?<
????}

????catch?(...)?{

????????cerr?<
????}

????return?EXIT_FAILURE;

}


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????462??2010-07-02?14:26??City.h

?????文件???????1108??2010-07-02?14:27??main.cpp

?????文件???????5259??2012-06-05?16:08??RailSystem.cpp

?????文件????????921??2010-07-02?14:27??RailSystem.h

?????文件????????284??2010-07-02?14:26??Service.h

-----------?---------??----------?-----??----

?????????????????8034????????????????????5


評論

共有 條評論