dish.h

来自「酒店用的嵌入式无线点餐系统」· C头文件 代码 · 共 30 行

H
30
字号
// Dish.h: interface for the Dish class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DISH_H__185FD954_AE36_417F_9627_E40DAF12E67B__INCLUDED_)
#define AFX_DISH_H__185FD954_AE36_417F_9627_E40DAF12E67B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Dish
{
public:
	Dish();
	virtual~Dish();
	CString GetName();
	void SetName(CString Name1);
	int GetPrice();
	void SetPrice(int Price1);
    int GetQuantity();
	void SetQuantity(int Quantity1);
private:
	CString name;
	int price;
	int quantity;
};

#endif // !defined(AFX_DISH_H__185FD954_AE36_417F_9627_E40DAF12E67B__INCLUDED_)

⌨️ 快捷键说明

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