あなたのをエスケープします\
。\\
文字列で使用する場合は必須です。
FILE *f = fopen("R:\\abc.dat","r");
それ以外の場合、文字列には無効な引数である「アラート」エスケープ シーケンスfopen
が含まれていると見なされます。\a
一般的なエスケープ シーケンスとその目的は次のとおりです。
\a The speaker beeping
\\ The backslash character
\b Backspace (move the cursor back, no erase)
\f Form feed (eject printer page; ankh character on the screen)
\n Newline, like pressing the Enter key
\r Carriage return (moves the cursor to the beginning of the line)
\t Tab
\v Vertical tab (moves the cursor down a line)
\’ The apostrophe
\” The double-quote character
\? The question mark
\0 The “null” byte (backslash-zero)
\xnnn A character value in hexadecimal (base 16)
\Xnnn A character value in hexadecimal (base 16)