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

📄 users.h

📁 用VC++和SQL做的仓库管理系统
💻 H
字号:
// Users.h: interface for the CUsers class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USERS_H__B9669D21_5CC0_436E_BA04_1C0D3DC4BE1B__INCLUDED_)
#define AFX_USERS_H__B9669D21_5CC0_436E_BA04_1C0D3DC4BE1B__INCLUDED_

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

class CUsers  
{
private:
	CString UserName;
	CString Pwd;
	int User_type;
public:
	CUsers();
	virtual ~CUsers();
	
	CString GetUserName();
	void SetUserName(CString cUserName);
	CString GetPwd();
	void SetPwd(CString cPwd);
	int GetUser_type();
	void SetUser_type(int iUser_type);

	//数据库操作
	int HaveName(CString cUserName); //判断指定用户名是否存在
	void sql_insert();  
	void sql_updatePwd(CString cUserName);
	void sql_delete(CString cUserName);
	//读取所有字段值
	void GetData(CString cUserName);
};

#endif // !defined(AFX_USERS_H__B9669D21_5CC0_436E_BA04_1C0D3DC4BE1B__INCLUDED_)

⌨️ 快捷键说明

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