?? item.cpp
字號:
// Item.cpp : implementation file
//
#include "stdafx.h"
#include "Tally.h"
#include "Item.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CItem
//IMPLEMENT_DYNCREATE(CItem, CObject)
IMPLEMENT_SERIAL(CItem, CObject,2)
void CItem::Serialize(CArchive &ar){
if (ar.IsStoring()){
ar<<m_uiDay<<m_dCost<<m_tType<<m_sName<<m_sRemark;
}
else {
ar>>m_uiDay>>m_dCost>>m_tType>>m_sName>>m_sRemark;
}
}
CItem::CItem (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;
}
CItem::CItem()
{
}
CItem::~CItem()
{
}
CItem::CItem(CString &n,unsigned int d,double c,CString &r,int t){
m_uiDay = d;
m_dCost = c;
m_tType = t;
m_sName = n;
m_sRemark = r;
}
//BEGIN_MESSAGE_MAP(CItem, CObject)
//{{AFX_MSG_MAP(CItem)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
//END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CItem message handlers
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -