Users.h
资源名称:SQLVC.rar [点击查看]
上传用户:biney012
上传日期:2022-05-09
资源大小:4592k
文件大小:1k
源码类别:
数据库系统
开发平台:
Visual C++
- // 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_)