📄 chainlist.cpp
字号:
// chainList.cpp: implementation of the chainList class.
//
//////////////////////////////////////////////////////////////////////
#include "chainList.h"
#include"persons.h"
#include"student.h"
#include"teacher.h"
#include"empoyee.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
chainList::chainList(int type,persons*pp)
{
next=0;
typeOfPn=type;
if(pp)
{
switch(type)
{
case 1:
pl=new student(pp);
break;
case 2:
pl=new teacher(pp);
break;
case 3:
pl=new empoyee(pp);
break;
default:
pl=0;
}
}
else
pl=0;
}
chainList::~chainList()
{
delete pl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -