   C++ Header problems
  Hi, I have a little problem with c++ headers.Have a look at this:class UndoHandler {private:public:void undo(Tape * tape);};class Tape {private:UndoHandler * undoHandler;public:};I removed all the other functions to make it a bit clearer. When I try to compile a .cpp file with the above header file included, the compiler gives an error:tape.h:75: `Tape' was not declared in this scopeLine 75 is the line that says 'void undo(...)'Not surprising, as Tape is declared after UndoHandler. But if I put tape in front of UndoHandler then I get another error, as UndoHandler is not declared for Tape.How do I solve this?Bas   
  You should add a forward declaration for Tape before your UndoHandler definition. It's just:class Tape;For more details see  this article.   ;  EDIT: 8 seconds too lateYou need forward declarations, like this:class Tape; // ADDEDclass UndoHandler {private:public:void undo(Tape * tape);};class Tape {private:UndoHandler * undoHandler;public:};;  Thanks! :)You guys make gamedev rule!   