I have a class "Nodes" and a struct "Mark". Objects from "Nodes" have an element of struct "Mark", and objects of "Mark" have an element of class "Nodes".
struct Mark {
int q;
Nodes start;
};
class Nodes {
protected:
string Node_Name;
Mark mark;
};
The problem are errors: C2027 (use of undefined type 'type') or C2029 (class Nodes). So I can't change the positions of defining these things, because I would get new error (e.g. C2027 if it was C2029 before). How could I tackle this problem?