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

📄 supervsr.h

📁 含有文章和源码
💻 H
字号:
                                      // Chapter 11 - Program 3
#ifndef SUPERVSR_H
#define SUPERVSR_H

// This defines three subclasses of the parent type person. Different
//  data is stored for the different job classifications to illustrate
//  that it can be done.

#include "person.h"

class supervisor : public person {
   char title[25];
public:
   void init_data(char in_name[], int in_salary, char in_title[]);
   void display(void);
};



class programmer : public person {
   char title[25];
   char language[25];
public:
   void init_data(char in_name[], int in_salary, char in_title[],
                  char in_language[]);
   void display(void);
};



class secretary : public person {
   char shorthand;
   int typing_speed;
public:
   void init_data(char in_name[], int in_salary,
                  char in_shorthand, char in_typing_speed);
   void display(void);
};

#endif

⌨️ 快捷键说明

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