Quote:Original post by nobodynews
There is no type Strike. You want to to new Weapon or create a type called Strike.
Nah, after pre-processor, the code looks like this:
#include "Library.h" // Includes "Character.h" which in turn includes "Weapon.h"class Strike : public Weapon{ Strike(int nStrength = 3);}Strike::Strike(int nStrength): Weapon(nStrength) {}
Which in turn translates to:
// Strike::Strike() "returns" 'class Strike : public ....'class Strike : public Weapon{ Strike(int nStrength = 3);} Strike::Strike(int nStrength): Weapon(nStrength) {}