📄 student.cpp
字号:
// Student.cpp: implementation of the CStudent class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Ex3_1.h"
#include "Student.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CStudent,CObject,1)
CStudent::CStudent()
{
}
CStudent::~CStudent()
{
}
void CStudent::Serialize(CArchive& ar)
{
CObject::Serialize(ar);
if (ar.IsStoring())
{
// TODO: add storing code here
ar<<m_sName;//<<m_nID<<m_sDepart<<m_nSex<<m_dComputer<<m_dEnglish<<m_dMath<<m_dPhysics;
}
else
{
// TODO: add loading code here
ar>>m_sName;//>>m_nID>>m_sDepart>>m_nSex>>m_dComputer>>m_dEnglish>>m_dMath>>m_dPhysics;
}
}
void CStudent::SetName(CString str)
{
m_sName =str;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -