Original Post
Hi,
I have successfully implemented a basic A* search program in Java, and am now trying to port it to C++. The problem is my node and nodelist classes in java.
Node class holds the data at that node, and a nodelist of nodes connected to this node.
Nodelist class holds a nodelist of nodes connected to this list, as well as the node at the top of this list.
Having two classes use each other is fine in java, but in C++, one class can''t compile until the other one is compiled, and vice-versa.
Is there a way round this problem?