Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.cpp:
- Card* CreatedCard=new Card();
- Attack SendedSkill;
- SendedSkill.SetAttachedCard(CreatedCard);
- CreatedCard->AddSkill(&SendedSkill);
- CardSkill.h:
- void SetAttachedCard(Card* val) { AttachedCard=val; }
- Error:
- |In function 'int main()':|
- |23|error: no matching function for call to 'Attack::SetAttachedCard(Card*&)'|
- |23|note: candidate is:|
- include\CardSkill.h|24|note: void CardSkill::SetAttachedCard(CardSkill::Card*)|
- include\CardSkill.h|24|note: no known conversion for argument 1 from 'Card*' to 'CardSkill::Card*'|
Advertisement
Add Comment
Please, Sign In to add comment