cconsuminfo.cpp

来自「AA制消费管理系统 要深入学习C++面向对象编程的同学可以看看。」· C++ 代码 · 共 81 行

CPP
81
字号
#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 + =
减小字号Ctrl + -
显示快捷键?