The special escape character is the backslash character (\).
\" Display a double quotation mark.\' Display a single quotation mark.
\\ Display a backslash.
\0 Null
\a Alarm
\b Backspace
\f Form feed
\n Newline
\r Carriage return
\t Tab
\v Vertical tab
Result is:
Dan said: "Hello world!"
string path = "C:\\MyDir";
Result is:
C:\MyDir
Niciun comentariu:
Trimiteți un comentariu