#include<iostream>
#include<Windows.h>
#include<string>
using namespace std;
class color
{
public:
int Rmax, Gmax, Bmax;
int Rmin, Gmin, Bmin;
int r, g, b;
int x, y;
int ex, ey;
color()
{
ex=ey=Rmax = Gmax = Bmax = Rmin = Gmin = Bmin = r = g = b = x = y = 0;
}
};
int r=0, g=0, b=0;
//获取用户输入,rgb的范围,并且返回color
color created_color()
{
color c;
cout << "请输入红色(先最大值,再最小
10-24
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交