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 + -
显示快捷键?