no match for operator<< in std::cout

I have a really small snippet of code here:

1
2
3
4
5
6
7
8
void attack()
{
    system("CLS");
    cout<<Hero.getDmg<<" attacks!\n\n";
    Sleep(100);
    cout<<mon.getNaam<<" took "<<Hero.getDmg<<" damage!";

}


The problem is, it can't compile because it syas: no match for operator<< in std::cout. I've never encountered this problem before. Hero is a global object.
It should be Hero.getDmg() (don't forget the parentheses). Same for the others.
Omg I'm making so silly mistakes lately...
Thanks!
Topic archived. No new replies allowed.