How do I define classes that refer to each other?
Title
Question
How do I define classes that refer to each other?
If I want to define two classes that refer to each other and each other's members, how do I do that? As someone mentioned in another thread, C++ processes definitions sequentially. So how can I make two classes that require each other's definitions?
I didn't find the right solution from the internet.
References:
http://www.programmingforums.org/thread484646580.html
Advanced-Cpp General