locked
what does this mean RRS feed

  • Question

  •  error C2065: 'total' : undeclared identifier
    Thursday, 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

    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.
    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.
    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

    Thursday, October 17, 2013 6:24 AM