📄 response.cpp
字号:
// Response.cpp: implementation of the Response class.
//
//////////////////////////////////////////////////////////////////////
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
#include "Element.h"
#include "Guess.h"
#include "Response.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Response::Response(int r, int y, int g) {
SetRed(r);
SetYellow(y);
SetGreen(g);
}
int Response::GetRed() const {
return Counts.GetX();
}
int Response::GetYellow() const {
return Counts.GetY();
}
//int Response::GetGreen() const {
// return Counts.GetZ();
//}
void Response::SetRed(int r) {
Counts.SetX(r);
}
void Response::SetYellow(int y) {
Counts.SetY(y);
}
void Response::SetGreen(int g) {
Counts.SetZ(g);
}
int Response::GetGreen() const
{
return Counts.GetZ();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -