| | |
Losing My Mind!!! Please Help!!!
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2005
Posts: 3
Reputation:
Solved Threads: 0
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
thank you, star
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.
"C:\Chainsaw\Kelp" // wrong
"C:\\Chainsaw\\Kelp" // right
If this doesn't explain it, please post a sample of the code getting the errors.
•
•
•
•
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
"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
•
•
Join Date: Feb 2005
Posts: 3
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Please help... Homework woes! (C++)
- Help for a real NOOB... (VB.NET)
- Can't access secure websites - have tried everything (Windows NT / 2000 / XP)
- Computer practically not functioning...I need help asap (Windows NT / 2000 / XP)
- "Your Windows is corrupted with spyware virus" Popup (Viruses, Spyware and other Nasties)
- WINDOWS XP ANIMATION problems on IE (Web Browsers)
Other Threads in the C++ Forum
- Previous Thread: looping problem
- Next Thread: Old School Compiler vs New Compiler
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






