📄 cconsuminfo.cpp
字号:
#include "CConsumInfo.h"
int CConsumInfo::getId()
{
return id;
}
/////////////////////////////////////////////////////
string CConsumInfo::getDate()
{
return date;
}
/////////////////////////////////////////////////////
double CConsumInfo::getAmount()
{
return amount;
}
/////////////////////////////////////////////////////
int CConsumInfo::getConsumTotalNum()
{
return consumTotalNum;
}
/////////////////////////////////////////////////////
string CConsumInfo::getConsumId()
{
return consumId;
}
/////////////////////////////////////////////////////
string CConsumInfo::getExplain()
{
return explain;
}
/////////////////////////////////////////////////////
void CConsumInfo::setId(int n)
{
id=n;
}
/////////////////////////////////////////////////////
void CConsumInfo::setDate(string str_date)
{
date=str_date;
}
/////////////////////////////////////////////////////
void CConsumInfo::setAmount(double money)
{
amount=money;
}
/////////////////////////////////////////////////////
void CConsumInfo::setConsumTotalNum(int num)
{
consumTotalNum=num;
}
/////////////////////////////////////////////////////
void CConsumInfo::setConsumId(string totalid)
{
consumId =totalid;
}
/////////////////////////////////////////////////////
void CConsumInfo::setExplain(string str_explain)
{
explain=str_explain;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -