2Answers
What do the commonly used escape characters \n,\t,\r,\\,\\, etc. mean?
Asked by: Gary 169 views Software
What do the commonly used escape characters \n,\t,\r,\\,\\, etc. mean?
Welcome Guest.
Asked by: Gary 169 views Software
What do the commonly used escape characters \n,\t,\r,\\,\\, etc. mean?
+3Votes
\n Line feed, under windows system, it is carriage return+line feed
\t TAB, usually 4 spaces
\r carriage return
\\ is \ itself
There will be a table in the general tutorial, this is just a simple escape, not difficult to understand
+6Votes
\n line feed, \r carriage return, \t horizontal tabulation, \\
backslash character’\’, \v
vertical tab, \b
back Grid, \f
feed and page feed, \’
single quote character
\a
bell, \ddd
1 to 3 octal numbers The characters represented by \xhh
characters represented by 1 to 2 hexadecimal numbers
probably that’s it, I hope the host will adopt