I added some code, and i gotso i commented it all out, but i still get it, what's going on? What does that even mean!?Code:C:\Users\Matt\Desktop\Projects\fincal2\fincal2Main.cpp|219|error: stray '\127' in program|
I added some code, and i gotso i commented it all out, but i still get it, what's going on? What does that even mean!?Code:C:\Users\Matt\Desktop\Projects\fincal2\fincal2Main.cpp|219|error: stray '\127' in program|
Sorry, but i'm a Code::Blocks man now.
anybody?
Sorry, but i'm a Code::Blocks man now.
Did you by any chance copied and pasted the file through a terminal? I got the same problem when I copied my code through putty (ssh client for windows). No idea why. I just stopped doing it.
One common way is to copy/paste HTML code into your editor.
Anyway, look very carefully at the indicated line. Delete any space and replace it with a real space (for example). Also look for " " marks which slope in either direction.
A hex editor is ideal for this, as any source code should contain only 0x20 to 0x7E + 0x09 (tab) 0x0a (linefeed) or 0x0d (newline)
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I think there's a bug in that error message! \127 (octal) is 87 decimal - so a W.
I suspect it's actually referring to a "delete" character, ascii decimal 127.
Otherwise the above comments are correct - use hex editor or some editor that can display "funny" characters. (emacs is quite capable of this for example).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.