student.cpp
来自「文件用于mfc的设计编写」· C++ 代码 · 共 57 行
CPP
57 行
// Student.cpp : implementation file
//
#include "stdafx.h"
#include "ed.h"
#include "Student.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStudent
CStudent::CStudent()
{
}
CStudent::~CStudent()
{
}
BEGIN_MESSAGE_MAP(CStudent, CWnd)
//{{AFX_MSG_MAP(CStudent)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStudent message handlers
CStudent::CStudent(CString num, CString name, float score)
{
m_num=num;
m_name=name;
m_score=score;
}
void CStudent::operator =(CStudent &stu)
{
m_num=stu.m_num;
m_name=stu.m_name;
m_score=stu.m_score;
}
void CStudent::print()
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?