UserManage.h

来源:互联网 发布:淘宝一口价有效期 编辑:程序博客网 时间:2024/05/06 03:12
/*-------UserManage.h-------------------- * *-------------------------------------*/#ifndef USERMANAGE_H#define USERMANAGE_H#include "User.h"#include <list>using std::list;class UserManage{private:static bool instanceFlag;static UserManage *instance;UserManage();list<User> users;public:static UserManage *getInstance();~UserManage();User* findUserByName( string name );bool createUser( string name, string password, string email, string phone );bool deleteUser( User u );bool updateUserPassword( User u, string newPassword );bool updateUserEmail( User u, string newEmail );bool updateUserPhone( User u, string newPhone );list<User> listAllUsers( );};#endif

0 0
原创粉丝点击