[ Web Proxy ]
URL:
Viewing: https://ko.cppreference.com/cpp/language/escape [Back]  [Original]

- cppreference.com
cppreference.com

cppreference.com
 
 
C++
General topics
Flow control
Conditional execution statements
Iteration statements
Jump statements
Functions
function declaration
lambda function declaration
function template
inline specifier
exception specifications (deprecated)
noexcept specifier (C++11)
Exceptions
Namespaces
Types
decltype specifier (C++11)
Specifiers
cv specifiers
storage duration specifiers
constexpr specifier (C++11)
auto specifier (C++11)
alignas specifier (C++11)
Initialization
Literals
Expressions
alternative representations
Utilities
Types
typedef declaration
type alias declaration (C++11)
attributes (C++11)
Casts
implicit conversions
const_cast conversion
static_cast conversion
dynamic_cast conversion
reinterpret_cast conversion
C-style and functional cast
Memory allocation
Classes
Class-specific function properties
Special member functions
Templates
class template
function template
template specialization
parameter packs (C++11)
Miscellaneous
Inline assembly
 

.

:

!
\' byte 0x27
\" byte 0x22
\? byte 0x3f
\\ byte 0x5c
\0 byte 0x00
\a byte 0x07
\b byte 0x08
\f - byte 0x0c
\n - byte 0x0a
\r byte 0x0d
\t byte 0x09
\v byte 0x0b
\nnn 8 byte nnn
\xnn 16 byte nn
\unnnn .
.
code point U+nnnn
\Unnnnnnnn .
.
code point U+nnnnnnnn

Notes

I/O OS .

8 8 8 .

16 16 . 16 (char, char16_t, char32_t, or wchar_t) .

char .

. "??/" "\" . "?\?/" "??/" .

Example

#include <iostream>

int main()
{
    std::printf("This\nis\na\ntest\n\nShe said, \"How are you?\"\n");
}

Output:

This
is
a
test

She said, "How are you?"

See also


Web Proxy Viewer  |  New URL  |  Original Page