Can I declare a path with a single "\"
-
I'm using Visual C++.net 2002 With MFC. I know I can declare a path
"C:\\folder\\file.txt
but is there a way to declare it"C:\folder\file.txt"
. If so how? Thanks for any help.For string literals, backslashes must be doubled. Why is this a problem?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
I'm using Visual C++.net 2002 With MFC. I know I can declare a path
"C:\\folder\\file.txt
but is there a way to declare it"C:\folder\file.txt"
. If so how? Thanks for any help. -
For string literals, backslashes must be doubled. Why is this a problem?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Sometimes it can create very strange bugs if you forget one double backslash in a path... I have never liked this, but I have learned to live with it...