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

📄 graduate.cpp

📁 交通系统中关于各地之间可行线程的求得
💻 CPP
字号:
// Graduate.cpp: implementation of the Graduate class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Graduate.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Graduate::Graduate(){}
Graduate::Graduate(string name,int number,int sex,int id,Birthday birthday)
{
	this->name  = name;
	this->number = number;
	this->sex = sex;
	this->id = id;
	this->birthday.year = birthday.year ;
	this->birthday .month = birthday .month ;
	this->birthday .day = birthday .day;
}

Graduate::~Graduate()
{

}

void Graduate::SetInfo(Teacher  adviser,char subject[21])
{
	this->adviser.operator =(adviser);
	for(int i =0;i<21;i++){
		this->subject[i] = subject[i];
	}
}

void Graduate::operator =(Graduate &graduate)
{
	People::operator = (graduate);
	//	this->adviser = graduate.adviser ;
	this->SetInfo (graduate.adviser ,graduate.subject);
}

⌨️ 快捷键说明

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