student.cpp

来自「通讯录程序」· C++ 代码 · 共 78 行

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

#include "stdafx.h"
#include "AddressList.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()
{

}

void CStudent::AddName(const CString s)
{
	m_name = s;		
}

void CStudent::AddID(const CString id)
{
	m_id = id;
}

void CStudent::AddTeleNum(const CString tel)
{
	m_telenum = tel;
}

void CStudent::AddPost(const CString post)
{
	m_post = post;
}

void CStudent::AddAddress(const CString add)
{
	m_address = add;
}

CString CStudent::GetId()
{
	return m_id;
}

CString CStudent::GetName()
{
	return m_name;
}

CString CStudent::GetTeleNum()
{
	return m_telenum;
}

CString CStudent::GetPost()
{
	return m_post;
}

CString CStudent::GetAddress()
{
	return m_address;
}

⌨️ 快捷键说明

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