city.h
来自「SSD6卡耐基梅陇大学OP7答案 绝对正确 SSD6数据结构 是一门很重要的课程」· C头文件 代码 · 共 27 行
H
27 行
#ifndef _CITY_H_
#define _CITY_H_
using namespace std;
class City {
public:
// name of the city
string name;
// bookkeeping info
bool visited;
int total_fee;
int total_distance;
string from_city;
City() : name(""), visited(false), total_fee(0), total_distance(0), from_city("") {}
City(string const &s): name(s), visited(false),
total_fee(0), total_distance(0), from_city("") {}
}
;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?