单双号限行是什么意思:c++ 2进制的转义字符是什么样的?

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 17:40:40
"\O"输出格式为八进制.
象是别的:
"\x"输出格式为十六进制.
"\d"输出格式为十进制.

那么二 进制的呢?

\a 0x07 BEL Audible bell
\b 0x08 BS Backspace
\f 0x0C FF Formfeed
\n 0x0A LF Newline (linefeed)
\r 0x0D CR Carriage return
\t 0x09 HT Tab (horizontal)
\v 0x0B VT Vertical tab
\\ 0x5c [~!BSLASH!~] Backslash
\' 0x27 ' Single quote (apostrophe)
\" 0x22 " Double quote
\? 0x3F ? Question mark
\O any O=a string of up to three octal digits
\xH any H=a string of hex digits
\XH any H=a string of hex digits

没有二进制的,

没有二进制的,十六进制其实就是四位的二进制,如果要输出二进制数,要自己处理.