dish.cpp

来自「酒店用的嵌入式无线点餐系统」· C++ 代码 · 共 60 行

CPP
60
字号
// Dish.cpp: implementation of the Dish class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "OrderDishsSys.h"
#include "Dish.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

Dish::Dish()
{
	name=_T("");
	price=0;
	quantity=0;
}
/////
CString Dish::GetName()
{
	return name;
}
////
void Dish::SetName(CString Name1)
{
	name=Name1;

}
////
int Dish:: GetPrice()
{
	return price;
}
///
void Dish::SetPrice(int Price1)
{
	price=Price1;
}
/////
int Dish::GetQuantity()
{
	return quantity;
}
///
void Dish::SetQuantity(int Quantity1)
{
	quantity=Quantity1;
}
/////
Dish::~Dish()
{
}

⌨️ 快捷键说明

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