circular class member pointer?
<p>I am not sure if I can describe the problem, but I will try my best. Here is the situation:</p>

<p>If I can want a class1 has a pointer as a member variable pointing to another class, class2. Meanwhile, I want class2 also has a pointer as a member variable pointing to class1. Is that possible?</p>

<pre><code>class Class1
{
private:
    Class2* classptr;
        ... ...
public:
        ... ...
};

class Class2
{
private:
    Class1* classptr;
        ... ...
public:
        ... ...
};
</code></pre>

<p>It appears to me that none of Class1 and Class2 has been recognized as an identifier. I guess none of Class1 and Class2 is created. Correct me if I am wrong. </p>
