student.cpp

来自「一系列的c++例子 一步一步由浅入深 有 聊天室」· C++ 代码 · 共 35 行

CPP
35
字号
// Student.cpp: implementation of the CStudent class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Ex_DocView.h"
#include "Student.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CStudent::CStudent()
{

}
CStudent::CStudent(long code,CString name,long age,double score)
{
	m_nCode=code;
	m_sName=name; 
	m_lAge=age;
	m_lScore=score;
}

CStudent::~CStudent()
{

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?