|
-
August 26th, 2004, 10:46 PM
#2
Re: Do i need a copy constructor?
my additional codes are here:
//Cpp file of CItem Class
CItem::CItem()
{
Initialize();
}
CItem::~CItem()
{
}
void CItem::Initialize()
{
pApp = (CVRSApp*)AfxGetApp();
sSelect = "";
m_sItemType = "";
m_sItemCode = "";
m_sItemPrevCode = "";
m_sItemCategory = "";
m_sUserID = "";
m_sItemDatePurchased = "";
m_sRentMaxDate = "";
dItemPurchased = 0;
dItemRentAmt = 0;
dItemSalesAmt = 0;
dItemPenalty = 0;
iItemAvailable = 0;
iRentDuration = 0;
iSalesDuration = 0;
iNoOfItems = 0;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|