student.cpp
来自「数据库编程」· C++ 代码 · 共 80 行
CPP
80 行
// Student.cpp: implementation of the Student class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Course.h"
#include "Student.h"
#include "Manager.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CStudent::CStudent()
{
num="";
Class="";
name="";
password="";
}
CStudent::~CStudent()
{
}
void CStudent::Set(CString x,CString y,CString z,CString w)
{
name=x;
num=y;
password=z;
Class=w;
}
CString CStudent::GetName()
{
return name;
}
CString CStudent::GetNum()
{
return num;
}
CString CStudent::GetPassword()
{
return password;
}
CString CStudent::GetClass()
{
return Class;
}
void CStudent::SetName(CString x)
{
name=x;;
}
void CStudent::SetNum(CString x)
{
num=x;
}
void CStudent::SetPassword(CString x)
{
password=x;
}
void CStudent::SetClass(CString x)
{
Class=x;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?