use such type of objects:
struct cc
{
union
{
int a;
double b;
};
operator int(){return a;}
operator double(){return b;}
operator=(int _a){a=_a;}
operator=(double _b){b=_b;}
}; John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.