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

📄 ustomer.h

📁 看看
💻 H
字号:
// USTOMER.h: interface for the CUSTOMER class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USTOMER_H__51B241DF_0742_4EC1_8F3B_1CFC841BB562__INCLUDED_)
#define AFX_USTOMER_H__51B241DF_0742_4EC1_8F3B_1CFC841BB562__INCLUDED_

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

class CUSTOMER:public CObject
{
private:
	long account;//账号
	CString name;
	long password;
	CString address;
    int atype;//储种
	double base;//本金
   	CTime indate;//收储日期
	CTime outdate;//支取日期
	BOOL ismiss;//挂失标记
	CTime missdate;//挂失日期
	/*CUSTOMER *pnext;*/
	static int count;
	/*static CUSTOMER *phead;*/
public:
	void Serialize(CArchive &ar);
	CUSTOMER(){}
	CUSTOMER(CString,long,CString,int,double,time_t);
    CUSTOMER(CUSTOMER &);
	CUSTOMER(long);
	~CUSTOMER();
    //读取数据接口。
	long GetAccount(){return account;}
	CString GetName(){return name;}
	long Getpassword(){return password;}
	CString GetAddress(){return address;}
	int GetType(){return atype;}
	double GetBase(){return base;}
	CTime GetIndate(){return indate;}
	CTime GetOutdate(){return outdate;}
	BOOL GetIsmiss(){return ismiss;}
	CTime GetMissdate(){return missdate;}
	//挂失处理。
	void Miss(){ismiss = TRUE;}
    void MissDate(time_t a){missdate = CTime(a);}
	//链标处理。
	/*CUSTOMER *GetNext(){return pnext;}*/
	static CUSTOMER *Gethead();
	static int DelP(CUSTOMER *);
	static CUSTOMER *Find(long);
	static CUSTOMER *FindPre(CUSTOMER);
	static int DelP(CUSTOMER *,CUSTOMER *);
	static void DelAll();
	static int numofclass;
	CUSTOMER &operator=(CUSTOMER &);
	bool operator==(const CUSTOMER &);
	friend bool operator==(const CUSTOMER &,const CUSTOMER &);
};

#endif // !defined(AFX_USTOMER_H__51B241DF_0742_4EC1_8F3B_1CFC841BB562__INCLUDED_)

⌨️ 快捷键说明

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