📄 student.cpp
字号:
// Student.cpp : implementation file
//
#include "stdafx.h"
#include "E3_1.h"
#include "Student.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStudent
IMPLEMENT_DYNCREATE(CStudent, CCmdTarget)
void CStudent::Serialize(CArchive&ar)
{
if(ar.IsStoring())
{
ar<<m_Num<<m_Name<<m_Score;
}
else
{
ar>>m_Num>>m_Name>>m_Score;
}
}
CStudent::CStudent()
{
m_Num=0;
m_Name=_T("");
m_Score=0;
}
CStudent::CStudent(const int num,const CString name,const int score)
{
m_Num=num;
m_Name=name;
m_Score=score;
}
CStudent::~CStudent()
{
}
//BEGIN_MESSAGE_MAP(CStudent, CCmdTarget)
//{{AFX_MSG_MAP(CStudent)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
//END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStudent message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -