ccourse.cpp

来自「数据库编程」· C++ 代码 · 共 74 行

CPP
74
字号
// CCourse.cpp: implementation of the CCCourse class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Course.h"
#include "CCourse.h"

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

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

CCCourse::CCCourse()
{
	name="";
	id="";
	teacher="";
	upnum=0;
	renum=0;
}

CCCourse::~CCCourse()
{
}

void CCCourse::Set(CString x,CString y,CString z,int up,int re)
{
	name=x;
	teacher=y;
	id=z;
	upnum=up;
	renum=re;
}

CString CCCourse::GetId()
{
	return id;
}

CString CCCourse::GetName()
{
	return name;
}

CString CCCourse::GetTeacher()
{
	return teacher;
}

int CCCourse::GetUpnum()
{
	return upnum;
}

int CCCourse::GetRenum()
{
	return renum;
}

void CCCourse::SetId(CString x)
{
	id=x;
}

void CCCourse::SetTeacher(CString x)
{
	teacher=x;
}

⌨️ 快捷键说明

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