struct card {
constchar *face;
constchar *suit;
constchar *color;
};
typedefstruct card Card;
typedefunsignedchar pairs;
// function that is to be used to compare two card faces but is not working well.Error :no match for 'operator&' in 'cd1 & 60'
int compareface(constvoid* c1, constvoid *c2)
{
card cd1,cd2;
cd1=*((card*) c1);
cd2=*((card*) c2);
cd1.face= (cd1&0x3c)>>2;
cd2= (cd2&0x3c)>>2;
if(cd1>cd2)
return 1;
if(cd1==cd2)
return 0;
return -1;
}