-
October 12th, 2009, 08:41 AM
#1
Understanding Backslash and Yen
Hi,
I have often noticed that on Windows, when I intend to type in a folder separator \ (backslash), it gets displayed as the yen symbol.
Why does this happen ? Could you please explain.
-
October 12th, 2009, 08:47 AM
#2
Re: Understanding Backslash and Yen
Backslash is an flag character in C/C++ character arrays. It tells the compiler to do something special at that point in a string:
Code:
char foo[]="Insert a tab here\t.";
To use a literal '\', just type it twice:
Code:
char bar[]="c:\\Temp";
-
October 12th, 2009, 02:49 PM
#3
Re: Understanding Backslash and Yen
This happens when you install the Japanese code page and set it as the default locale.
Read more about it here -
Backslash
When is a backslash not a backslash?
-
October 12th, 2009, 03:02 PM
#4
Re: Understanding Backslash and Yen
Interesting read. I was way off. Sorry. I should have noticed that with 300+ posts, the OP must surely know about backslash escapes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|