graduatestudent.h
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
源码类别:
C#编程
开发平台:
Visual C++
- //=====================================
- // graduatestudent.h
- //=====================================
- #ifndef HEADER_GRADUATESTUDENT
- #define HEADER_GRADUATESTUDENT
- //-------------------------------------
- #include"student.h"
- #include<iostream>
- //-------------------------------------
- class Advisor{
- int noOfMeeting;
- };//-----------------------------------
- class GraduateStudent : public Student{
- Advisor advisor;
- int qualifierGrade;
- public:
- GraduateStudent(string pName="noName"):Student(pName),qualifierGrade(0){}
- int getQualifier(){ return qualifierGrade; }
- void display(){
- Student::display();
- std::cout<<" qualifierGrade="<<qualifierGrade<<"n";
- }
- };//-----------------------------------
- #endif // HEADER_GRADUATESTUDENT