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

📄 student.cpp

📁 MFC做的学生管理系统
💻 CPP
字号:
// Student.cpp: implementation of the CStudent class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"


#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CStudent, CPerson, VERSIONABLE_SCHEMA | 1)

CStudent::CStudent()
{

}

CStudent::~CStudent()
{

}

/*void CStudent::Serialize(CArchive &ar)
{
	// 对象序列化保存
	if (ar.IsStoring())
	{
		ar << this->m_strName << this->m_strSex << this->m_nAge << this->m_strTel  << m_csScore.m_nComputer << m_csScore.m_nEnglish << m_csScore.m_nEthic  << m_strStuNum << m_strEducation;
	}
	else
	{
		ar >> this->m_strName >> this->m_strSex >> this->m_nAge >> this->m_strTel >> m_csScore.m_nComputer >> m_csScore.m_nEnglish >> m_csScore.m_nEthic  >> m_strStuNum << m_strEducation;	
	}
}*/

void CStudent::Serialize(CArchive &ar)
{
	// 对象序列化保存
	if (ar.IsStoring())
	{
        ar << this->m_strEducation << this->m_strStuNum ;
	}
	else
	{
		ar >> this->m_strEducation >> this->m_strStuNum ;
	}

	CPerson::Serialize(ar);
	this->m_csScore.Serialize(ar);
}

⌨️ 快捷键说明

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