A problem with pointers and objects.
I am having a bit of trouble here - I know what the problem is, but I am not very well acquainted with the tools of C++.
To help you scuff through all the nonsense in the below code, go to line 144.
I have a class "node", with a subclass "lexicalnode". A third class, "lexicalitem" is a base class. "lexicalnode" and "lexicalitem" each has a pointer which points to another object of the opposite class. The problem is that one of them is declared before the other, meaning I get a compiler error at the last one. How can I solve this?
If there is any way to separate "lexicalnode" and "lexicalitem" into separate .cpp files without a recursive inclusion, I would be happy for assistance.