users.h

来自「< VISUAL C++ 数据库编程技术与实例>> 配套源码 」· C头文件 代码 · 共 39 行

H
39
字号
// Users.h: interface for the CUsers class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USERS_H__451F3215_5B38_48AF_8D6D_A4361016F23E__INCLUDED_)
#define AFX_USERS_H__451F3215_5B38_48AF_8D6D_A4361016F23E__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__451F3215_5B38_48AF_8D6D_A4361016F23E__INCLUDED_)

⌨️ 快捷键说明

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