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

📄 student.cpp

📁 创建用户界面交互平台,主要是熟悉控件的使用
💻 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 + -