doctor.h

来自「《C++程序设计教程(第二版)》源代码 源代码中包括运行所需的数据文件,它的格」· C头文件 代码 · 共 16 行

H
16
字号
//=====================================
// doctor.h
//=====================================
#ifndef HEADER_DOCTOR
#define HEADER_DOCTOR
//-------------------------------------
#include"graduatestudent.h"
#include<iostream>
//-------------------------------------
class Doctor : public GraduateStudent{
public:
  Doctor(string pName="noName"):GraduateStudent(pName){ type = DOCTOR; }
  void calcTuition(){std::cout<<"Doctor tuition calculation.\n";}
};//-----------------------------------
#endif  // HEADER_DOCTOR
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?