Hello all,
I am new to C++ and I need a little help. I am debugging some code I wrote, and I get the following error:
Error: String literal syntax error /Users/Desktop/macros/De.C:272:
Error: << Illegal operator for pointer 3 /Users/Desktop/macros/De.C:272:
Error: << Illegal operator for real number /Users/Desktop/macros/De.C:272:
(class G__CINT_ENDL)31961104
*** Interpreter error recovered ***
The interesting thing is that lines 250-290 are completely commented out. Isn't commented line skipped over?
I've also deleted white space out above the code, and the error moves accordingly- it's targeting a single line that's commented out. The line is:
|
// display << "De" << endl;
| |
I'm sure the display file is opened/closed right. The file is written to in other places and no error is generated.
Any help is GREATLY appreciated. I just never thought that code that's commented out could cause an error...isn't that part of the idea behind commenting?
thanks