www.pudn.com > classSystem(c++).rar > UserList.h


// UserList.h: interface for the CUserList class. 
// 
////////////////////////////////////////////////////////////////////// 
#include "UserNode.h" 
 
 
#if !defined(AFX_USERLIST_H__3C5F49A1_A68B_4711_809F_7C4472DF7AB7__INCLUDED_) 
#define AFX_USERLIST_H__3C5F49A1_A68B_4711_809F_7C4472DF7AB7__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CUserList   
{ 
public: 
	CUserList(); 
	virtual ~CUserList(); 
 
	bool Append(UINT key,char account[], char name[],char major[], 
					   char password[],char city[] ,char college[] , 
		char dormitory[],char phone[],char mobilephone[] ,char email[], 
		char homeAddress[],char postNumber[],char cet4[],char cet6[] , 
		char description[]); 
	bool Append(UINT key,CString account, CString name,CString major, 
					   CString password,CString city ,CString college , 
		CString dormitory,CString phone,CString mobilephone ,CString email, 
		CString homeAddress,CString postNumber,CString cet4,CString cet6 , 
		CString description); 
	bool find(CString account,CUserNode &curUser); 
	bool modifyPs(UINT key,CUserNode &curUser); 
	bool editInfo(UINT key,CUserNode &curUser); 
	bool remove(CUserNode &user); 
	UINT getTotal(){return total;} 
private: 
	CUserNode** row;//指针数组,以key作为索引,存贮 
	CUserNode* head; 
	CUserNode* tail; 
	CUserNode* fence; 
	UINT total;//链表数据项数 
 
}; 
 
#endif // !defined(AFX_USERLIST_H__3C5F49A1_A68B_4711_809F_7C4472DF7AB7__INCLUDED_)