?? ch11cperson.h
字號:
//Program 11-8 CGolfer CGolfer is derived from CPerson
// File: Ch11CPerson.h
#ifndef _CH11CPERSON_H
#define _CH11CPERSON_H
#include <iostream>
#include <string>
using namespace std;
class CPerson
{
protected:
string name;
int age;
public:
CPerson(string n, int a);
CPerson(){ cout << "\nIn the do-nothing CPerson constructor \n"; }
void WritePerson(){ cout << name << " is " << age << " years old. \n"; }
~CPerson() { cout << "\nDestructing CPerson object \n"; }
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -