⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dish.cpp

📁 酒店用的嵌入式无线点餐系统
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -