myProgram.cpp:

Code:
class childClass
{
          parentClass parent;  //reference to class that created this child
          childClass(parentClass p)
          {
                    parent = p;
          }
};

class parentClass
{
          childClass child(this);
};


This would work fine in Java, which I'm more accustomed to,...