I have a class like this:
and history class is basically something like this:Code:#include "History.h" class arena { public: arena(some arguments) : m_history(int num1, int num2) {}; private: History m_hisory; }
the compiler says that i can't have 2 argument for m_history, in the arena constructors member initialization list. How can i overcome this problem?Code://history.h class history { public: history(int num1, int num2){row=num1; col = num2;} private: int row, col; }




Reply With Quote