Nov 22, 2011 at 6:24am UTC
Ok, so right at the beginning of my code, I initialize three global variables, level, exp, and gold. My exp variable, however, doesnt seem to want to work, and I get this error:
1>c:\users\lisa\desktop\c++ projects ;d\pointerdot\pointerdot\pointerdot.cpp(9): error C2365: 'exp' : redefinition; previous definition was 'function'
What is this, and why does it say something about 'function' (whatever that is)?
Nov 22, 2011 at 7:04am UTC
Check line 9 in your code. It seems like you have declared 'exp' twice, or maybe a function with the same name.
Last edited on Nov 22, 2011 at 7:05am UTC
Nov 22, 2011 at 3:26pm UTC
Oh thanks, I didnt know that was a function xD It was also saying something about ambiguity, so I'm guessing that was it :P