response.h

来自「一个红蓝绿游戏」· C头文件 代码 · 共 30 行

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

#if !defined(AFX_RESPONSE_H__B04A454C_7A39_4504_958B_D8957BF48BF4__INCLUDED_)
#define AFX_RESPONSE_H__B04A454C_7A39_4504_958B_D8957BF48BF4__INCLUDED_

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

class Response  
{
public:
	int GetGreen()const;
	int GetYellow()const;
	int GetRed()const;
	Response(int r = 0,int y = 0,int g = 0);
	//virtual ~Response();

protected:
	void SetGreen(int g);
	void SetYellow(int y);
	void SetRed(int r);
private:
	Element Counts;
};

#endif // !defined(AFX_RESPONSE_H__B04A454C_7A39_4504_958B_D8957BF48BF4__INCLUDED_)

⌨️ 快捷键说明

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