0
What is the function \\
3 ответов
+ 4
Hm... it's documented in other languages but I couldn't find this in the c++ lessons.
Most languages have the problem of how to print or represent characters that you can't / shouldn't typed into the source code.
To get around the problem, language writers chose an uncommon character -- the backslash -- to precede another character that represents something special, e.g.:
\t horizontal tab
\n newline
but now... backslashes are special; how do you represent backslashes?
\\ backslash
Future note:
The same pattern also appears in 'regular expressions' (regex)
0
Thanks for the replies