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

📄 student.cpp

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

#include "stdafx.h"
#include "Student.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Student::Student(){}
Student::Student(string name,int number,int sex,int id,Birthday birthday)
{
	//char *name  = new char[SIZE];
	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;
}

Student::~Student()
{

}

void Student::SetClass(char classNO[SIZE])
{
	for(int i = 0;i<SIZE;i++){
		this->classNO [i]= classNO[i];
	}
}

void Student::operator =(Student student)
{
	People::operator= (student);
	this->SetClass (student.classNO );
}

⌨️ 快捷键说明

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