⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ccourse.cpp

📁 数据库编程
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -