Answered by:
what does this mean

Question
-
error C2065: 'total' : undeclared identifierThursday, October 17, 2013 6:00 AM
Answers
-
error C2065: 'total' : undeclared identifier
Note that the error message usually tells you which file (.cpp, .h, etc.) the error
occurred in and which line number it is on. If compiling in the IDE (rather than
from the command line) double-clicking on the error message in the Error window
should take you directly to that line in your source code.
- Wayne
- Marked as answer by May Wang - MSFT Monday, October 28, 2013 8:52 AM
Thursday, October 17, 2013 6:24 AM -
It means that somewhere you're using 'total' (as a variable probably) but you haven't declared it anywhere. Variables, functions, classes etc. need to be declared before they are used.
- Proposed as answer by Renjith V Ramachandran Friday, October 25, 2013 12:51 PM
- Marked as answer by May Wang - MSFT Monday, October 28, 2013 8:52 AM
Thursday, October 17, 2013 6:09 AM
All replies
-
It means that somewhere you're using 'total' (as a variable probably) but you haven't declared it anywhere. Variables, functions, classes etc. need to be declared before they are used.
- Proposed as answer by Renjith V Ramachandran Friday, October 25, 2013 12:51 PM
- Marked as answer by May Wang - MSFT Monday, October 28, 2013 8:52 AM
Thursday, October 17, 2013 6:09 AM -
error C2065: 'total' : undeclared identifier
Note that the error message usually tells you which file (.cpp, .h, etc.) the error
occurred in and which line number it is on. If compiling in the IDE (rather than
from the command line) double-clicking on the error message in the Error window
should take you directly to that line in your source code.
- Wayne
- Marked as answer by May Wang - MSFT Monday, October 28, 2013 8:52 AM
Thursday, October 17, 2013 6:24 AM