Two classes referencing eachother?

Started by
0 comments, last by rip-off 14 years, 1 month ago
Hello! I want to have 2 classes, which both have a Pointer to the other class. The problem is, when I include the headers in both files, the compiler says strange things, like "The class was not defined". I am sure, that there is a possibility!
Advertisement
You need forward declarations. Read this.

This topic is closed to new replies.

Advertisement