supervsr.h

来自「Since the field of object oriented progr」· C头文件 代码 · 共 44 行

H
44
字号
                               // Chapter 11 - Program 3 - SUPERVSR.H
#ifndef SUPERVSR_H
#define SUPERVSR_H

// This defines three subclasses of the parent type person. Different
//  data is stored for the different job classifications in order 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 + =
减小字号Ctrl + -
显示快捷键?