Losing My Mind!!! Please Help!!!

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2005
Posts: 3
Reputation: star320 is an unknown quantity at this point 
Solved Threads: 0
star320 star320 is offline Offline
Newbie Poster

Losing My Mind!!! Please Help!!!

 
0
  #1
Feb 10th, 2005
Please help... the problem... I run my programs, regardless of what I do seems I get the error C2017 continuous: the other errors at least I am given a "hint" to what to do: but this error constant! Listed as Illegal escape sequence. My errors are generally about 4-5 logic or syntax... this one is every line!!! I don't understand the comment line regarding this error and no matter what I get /par on the end of every line. Should I put /n to denote newline???? Really confused!
thank you, star
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 10
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Losing My Mind!!! Please Help!!!

 
0
  #2
Feb 10th, 2005
An escape sequence is something like '\n' for newline or '\t' for tab. An 'illegal' escape sequence is one that the compiler has no idea what to do with, like '\k' or something. That can show up if you have, say, a file name in a string and you forget to double escape the slash:

"C:\Chainsaw\Kelp" // wrong
"C:\\Chainsaw\\Kelp" // right

If this doesn't explain it, please post a sample of the code getting the errors.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,342
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Losing My Mind!!! Please Help!!!

 
0
  #3
Feb 10th, 2005
Originally Posted by Chainsaw
That can show up if you have, say, a file name in a string and you forget to double escape the slash:

"C:\Chainsaw\Kelp" // wrong
"C:\\Chainsaw\\Kelp" // right
Or use forward slashes.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 3
Reputation: star320 is an unknown quantity at this point 
Solved Threads: 0
star320 star320 is offline Offline
Newbie Poster

Re: Losing My Mind!!! Please Help!!!

 
0
  #4
Feb 11th, 2005
Thank you for your reply!!!
the build shows this: \par every time I use enter. and on such #include <iostream>, also everytime I tab \tab for every line.
I code:
using std::cout;
it will give me this:
using std::cout;\par

I am new to C-C++. I actually have total 27 errors.... 23 of them is this same C2017 illegal escape issue!

Thank you for your assistance.
star
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC