ch11cgolfer.h
来自「此例子是学习C++的好东西」· C头文件 代码 · 共 23 行
H
23 行
//Program 11-8 CGolfer CGolfer is derived from CPerson
// File: Ch11CGolfer.h
#ifndef _CH11CGOLFER_H
#define _CH11CGOLFER_H
#include "Ch11CPerson.h"
#include <iostream>
using namespace std;
class CGolfer:public CPerson
{
private:
int handicap;
public:
CGolfer(string n, int a, int h);
void WriteGolfer();
~CGolfer() { cout << "\nDestructing Golfer object \n"; }
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?