student.cpp

来自「创建用户界面交互平台,主要是熟悉控件的使用」· C++ 代码 · 共 57 行

CPP
57
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?