Or you can forward the declaration of your classes. This is convenient when they both depend on each other:
class Question; class Dialogue;
class Dialogue {public: int id; int trigger; Question descendants [5]; // Max questions per dialogue string text; };
class Question {public: int id; int descendant; int ancestor; string text; };
source share