city.h
来自「Data Abstraction & Problem Solving with 」· C头文件 代码 · 共 18 行
H
18 行
#include "KeyedItem.h"class City : public KeyedItem{public: City() { } City(const string& name, const string& ctry, const int& num) :KeyedItem(name), country(ctry), pop(num) { } string cityName() const; int getPopulation() const; void setPopulation(int newPop);private: // city's name is search-key value string country; // city's country int pop; // city's population}; // end class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?