prog.cpp:25:9: error: 'void Player::attack()' conflicts with a previous declaration
}
^
prog.cpp:8:13: note: previous declaration 'int Player::attack'
int attack;
^
prog.cpp: In constructor 'Player::Player()':
prog.cpp:17:20: error: invalid use of member function (did you forget the '()' ?)
attack = 0;
^