Jump to content

  • Log In with Google      Sign In   
  • Create Account

Tallkotten

Member Since 28 Jun 2012
Offline Last Active May 29 2013 02:15 PM

#4961377 Deleting from vector with iterator (99% sure this is the way to go)

Posted by Tallkotten on 20 July 2012 - 11:24 AM

I just searched for codeblocks and debugging and got quite a few results. Looks like it works pretty much like the Visual Studio debugger, and I would assume like most other visual debuggers as well.


I've actually never debugged before and when i read a tutorial earlier today i didn't not get all of the words used. Guess i'll have to find one that expects no previous knowledge of the subject.


#4956024 C++ not initilizing

Posted by Tallkotten on 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


PARTNERS