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

📄 student.cpp

📁 文件包含了很多VC实例
💻 CPP
字号:
#include "stdafx.h"
#include "student.h"

CStudentInfo::CStudentInfo(CString str1,int s,CString str2,int c,int m,int e,CTime time)
{
	strName = str1;
	sex = s ;
	classGrade = str2;
	chinese = c ;
	math = m ;
	english = e ;
	regTime = time ;
}

int CStudentInfo::getTotal()
{
	return chinese + math + english ;
}

void CStudentInfo::setName(CString str)
{
	strName = str ;
}

void CStudentInfo::setSex(int s)
{
	sex = s;
}

void CStudentInfo::setClassGrade(CString str)
{
	classGrade = str ;
}

void CStudentInfo::setChinese(int c)
{
	chinese = c ;
}

void CStudentInfo::setMath(int m)
{
	math = m;
}

void CStudentInfo::setEnglish(int e)
{
	english = e ;
}

void CStudentInfo::setTime(CTime time)
{
	regTime = time ;
}

⌨️ 快捷键说明

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