hi

i have a class so

Code:
class CFood
{
private:
    BOOL isnice;
    BOOL isbad;
public:
   CFood( BOOL a, BOOL b );

    void Eat();
};

CFood::CFood( BOOL a, BOOL b )
{
  isnice = a;
  isbad =b;
}
now another in main:

Code:
int main()
{
  CFood food = new CFood( TRUE, FALSE );
}
how access isnice?

my teacher tell me, to get isbad, need to do this

Code:
int main()
{
  CFood food = new CFood( TRUE, FALSE );

  BOOL isbad = *(BOOL*)(((char*)food)+sizeof(BOOL))
}
now, how to access isnice????

thx