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

📄 chainlist.cpp

📁 设计并实现一个简单的大学人员信息管理系统。对各类人员信息进行管理
💻 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 + -