Cari Blog Ini

20 November 2010

IT - Escape Sequence

Escape Sequence - Represents

* \n  : Bell (alert)
* \b  : Backspace
* \f   : Formfeed
* \n  : New line
* \r   : Carriage return
* \t   : Horizontal tab
* \v  : Vertical tab
* \'   : Single quotation mark
* \ "  : Double quotation mark
* \\   : Backslash
* \?  : Literal question mark
* \ ooo     :  ASCII character in octal notation
* \x hh      : ASCII character in hexadecimal notation
* \x hhhh   : Unicode character in hexadecimal notation if this escape sequence is used in a wide-character constant or a Unicode string literal.
For example, WCHAR f = L'\x4e00' or WCHAR b[] = L"The Chinese character for one is \x4e00".

Sumber :
http://msdn.microsoft.com/en-us/library/h21280bw(VS.80).aspx