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

📄 users.h

📁 快餐管理系统 这个快餐管理系统,实现了实际数据库管理功能,能给相关开发的朋友提供很好的借鉴
💻 H
字号:
// Users.h: interface for the CUsers class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USERS_H__BD77AB41_C315_4ED1_88D4_9AE27DBB136E__INCLUDED_)
#define AFX_USERS_H__BD77AB41_C315_4ED1_88D4_9AE27DBB136E__INCLUDED_

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

class CUsers  
{
public:
	CUsers();
	virtual ~CUsers();
public:
	void GetData (CString cUserName); // 读取指定的记录,参数cUserName为要读取数据的用户名
	int HaveName (CString cUserName); // 判断指定的用户名是否在数据库中,参数同上
	void sql_Delete (CString cUserName); // 删除指定的用户记录
	void sql_Insert();
	void sql_UpdatePwd (CString cUserName); // 修改由cUserName用户的密码


	CString GetUserName ();
	CString GetUserPwd ();
	int GetUserType ();

	void SetUserName (CString cUserName);
	void SetUserPwd (CString cUserPwd);
	void SetUserType (int iType);
private:
	CString UserName;
	CString UserPwd;
	int     UserType; // 1 - 系统管理员 2 - 普通用户
};

#endif // !defined(AFX_USERS_H__BD77AB41_C315_4ED1_88D4_9AE27DBB136E__INCLUDED_)

⌨️ 快捷键说明

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