I am trying to make a function in a class. I am having troubles with it because it is giving me the error, "no matching function for call to 'CMonster::CMonster()'" Could someone please help? This is what I have so far...
Add a default constructor (CMonster::Cmonster() //no args ) that initializes the classes members to 0 or whatever. Or just make sure you call the right constructor when you create CMonster's.
Any time you define a constructor for a class you have to include an explicit default constructor. On a side note, a constructor that has default arguments for all of its parameters counts as a default constructor. ;)