item.h

来自「一个简单的记账软件」· C头文件 代码 · 共 67 行

H
67
字号
#if !defined(AFX_ITEM_H__323582CF_FBF0_48AB_8A3E_90C3DDFA3AE1__INCLUDED_)
#define AFX_ITEM_H__323582CF_FBF0_48AB_8A3E_90C3DDFA3AE1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Item.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CItem command target

class CItem : public CObject
{
	//DECLARE_DYNCREATE(CItem)
public://private:
	CItem();           // protected constructor used by dynamic creation
public:
	CItem (CItem& c);
	CItem(CString &n,unsigned int d,double c,CString &r,int t=9);
// Attributes
public:
	unsigned int m_uiDay;
	double	m_dCost;
	int	m_tType;
	CString m_sRemark;
	CString m_sName;

DECLARE_SERIAL(CItem)
public:
	virtual void Serialize(CArchive &ar);
	CItem & operator = (CItem & c){
		m_uiDay = c.m_uiDay;
		m_dCost = c.m_dCost;
		m_tType = c.m_tType;
		m_sName = c.m_sName;
		m_sRemark = c.m_sRemark;
		return *this;
	}

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CItem)
	//}}AFX_VIRTUAL

// Implementation

	virtual ~CItem();

	// Generated message map functions
	//{{AFX_MSG(CItem)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

	//DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ITEM_H__323582CF_FBF0_48AB_8A3E_90C3DDFA3AE1__INCLUDED_)

⌨️ 快捷键说明

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