union color{
int Red;
int Blue;
int Green;
};
void Transfer(color &A){
char TransfTab[16]={'0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F'};
RGB[size]=TransfTab[А/16];
RGB[size+1]=TransfTab[А%16]; ошибка: error C2676: binary '%' : 'color' does not define this operator or a conversion to a type acceptable to the predefined operator
size+=2;
}
int main(){
color ID;
cout<<"Enter numeric values of the next color channels"<<endl;
do{
cout<<"Red: ";
cin>>ID.Red;
}while(ID.Red>255||ID.Red<0);
Transfer(ID);
return 0;
}