Advertisement

Declaring Classes

Started by September 17, 2001 12:32 PM
0 comments, last by Lukerd 23 years, 5 months ago
Hi In a header file I have to classes CPOLYGON and CPLANE but in the CPLANE class there is a reference to the Polygon class and the CPOLYGON class has a reference to the plane class. So here''s the question how do I declare one class before the other? thx Lukerd "To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
class CPLANE;

class CPOLYGON
{
CPLANE plane;
...
};

class CPLANE
{
CPOLYGON polygon;
...
};

This topic is closed to new replies.

Advertisement