Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualTallkotten

Posted 05 July 2012 - 10:46 AM

That which DoctorGlow said. You need to declare it before the main function otherwise main wont know there is such a function. Similar of how you handle a .h file when you got several classes (if you got any experience with that).

I'd guess that by simply typing
int getdamage(int damagebase, int damagerange);

before
int main()
and after
using namespace std;
the code would work

#1Tallkotten

Posted 05 July 2012 - 10:46 AM

That which DoctorGlow said. You need to declare it before the main function otherwise main wont know there is such a function. Similar of how you handle a .h file when you got several classes (if you got any experience with that).

I've guess that by simply typing
int getdamage(int damagebase, int damagerange);

before
int main()
and after
using namespace std;
the code would work

PARTNERS