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

📄 student.cpp

📁 使用vc++的mfc编写的简单学生管理系统源码
💻 CPP
字号:
// Student.cpp: implementation of the CStudent class.
//
//////////////////////////////////////////////////////////////////////

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

}

CStudent::CStudent(CString strName,CString strID,int nAge,CString strDepartment)
{
	m_strName = strName;
	m_strID = strID;
	m_nAge = nAge;
	m_strDepartment = strDepartment;
}

void CStudent::Display(CListCtrl *pListCtrl,int nImage)
{
	CString strAge;
	strAge.Format("%d",m_nAge);
	pListCtrl->InsertItem(0,m_strName,nImage);
	pListCtrl->SetItemText(0,1,m_strID);
	pListCtrl->SetItemText(0,2,strAge);
	pListCtrl->SetItemText(0,3,m_strDepartment);
}

⌨️ 快捷键说明

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