943,502 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5461
  • C++ RSS
Feb 10th, 2005
0

Losing My Mind!!! Please Help!!!

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
star320 is offline Offline
3 posts
since Feb 2005
Feb 10th, 2005
0

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

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.
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Feb 10th, 2005
0

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

Quote 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.
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Feb 11th, 2005
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
star320 is offline Offline
3 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: looping problem
Next Thread in C++ Forum Timeline: Old School Compiler vs New Compiler





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC