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

📄 student.h

📁 VC++做的学校收费管理系统,很有参考价值,附上源码与说明文档.
💻 H
字号:
// Student.h: interface for the CStudent class.
//
// 1 StuId int 学生编号 Identity = Yes Allow Null = False 主键
// 2 Name varchar(50) 姓名 Allow Null = False
// 3 Sex char(2) 性别 Allow Null = True
// 4 DepId int 所在院系编号 Allow Null = False
//
// 5 SpeId int 专业编号 Allow Null = False
// 6 ClassName varchar(20) 班级名称 Allow Null = True
// 7 iYear int 入学年度 Allow Null = True
// 8 IdCard varchar(20) 身份证号 Allow Null = True
//
// 9 ZhuSu char(2) 是否住宿 Allow Null = False
// 10 CunChe char(2) 是否存车 Allow Null = False
// 11 PinKun char(2) 是否贫困生 Allow Null = False
// 12 TeKun char(2) 是否特困生 Allow Null = False

// 13 FillinPerson varchar(30) 填表用户 Allow Null = False
// 14 FillinTime varchar(20) 填表日期和时间 Allow Null = False
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STUDENT_H__972B7FB5_2AED_400B_A3F6_931600A003A2__INCLUDED_)
#define AFX_STUDENT_H__972B7FB5_2AED_400B_A3F6_931600A003A2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CStudent  
{
// 定义变量
public:
	long StuId;							// 学生编号
	CString Name;						// 姓名
	CString Sex;						// 性别
	long DepId;							// 所在院系编号
	
	long SpeId;							// 专业编号
	CString ClassName;					// 班级名称
	int iYear;							// 入学年度
	CString IdCard;						// 身份证号
	
	CString ZhuSu;						// 是否住宿
	CString CunChe;						// 是否存车
	CString PinKun;						// 是否贫困生
	CString TeKun;						// 是否特困生

	CString FillinPerson;				// 填表用户
	CString FillinTime;					// 填表日期和时间
// 定义方法
public:
	CStudent();
	virtual ~CStudent();
	// 数据库操作
	void GetInfo(CString paraId);		// 根据学生编号得到其他信息
	CString GetName(CString paraId);	// 根据指定的学生编号返回学生姓名
	void SqlInsert();					// 插入操作
	void SqlUpdate(CString paraId);		// 更新数据
	void SqlDelete(CString paraId);		// 删除操作
};

#endif // !defined(AFX_STUDENT_H__972B7FB5_2AED_400B_A3F6_931600A003A2__INCLUDED_)

⌨️ 快捷键说明

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