In an abstract summary, Class A is defined in Class A. H, and Class A has B * Members. Class B is defined in Class B. H, and Class B also has a * member.
The solution is to add class B and a line before class a definition to declare. Add # include "A. H" before class B definition (the exchange is the same)If Class A is added before class B;, it should not work., One by vc6ProgramVerification. It seems that a class cannot be found in the Class View.
In A. cpp, what if a function of Class A needs to call a function of Class B? In this case, the function is not defined. Add
Class B <br/>{< br/> Public: <br/> void fun (); // declare a function <br/> };
The declared Class B is to declare that Class B exists. You can use its type to define a member of Class.
Recently I went down to a document, but I did it in sequence, but I found similar errors, which is a kind of achievement.
I have supplemented it. However, the document itself lacks too much and cannot be completely supplemented. Hey hey...