⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graduate_student.cpp

📁 person类 &#61656 数据成员: 姓名name、性别sex、年龄age &#61656 成员函数 (1)构造函数 (2)输出姓名、性别、年龄 派生类student
💻 CPP
字号:
//graduate_student类的实现
#include"person.hpp"
#include"student.hpp"
#include"teacher.hpp"
#include"graduate_student.hpp"
#include<iostream.h>
#include<string.h>
graduate_student::graduate_student(char n[20],char s[2],int a,char sn[20],char st[10],int sc[],int length,char t[20],char wn[10]):student(n,s,a,sn,st,sc,5),teacher(n,s,a,wn,t),person(n,s,a)
{}
void graduate_student::show()
{ cout<<"姓名:"<<name<<"\n";
  cout<<"性别:"<<sex<<"\n";
  cout<<"年龄:"<<age<<"\n";
  cout<<"职称:"<<title<<"\n";
  cout<<"研究生专业代号:"<<study<<"\n";
  return;
}

⌨️ 快捷键说明

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