嘿家伙,所以我有这个特殊字符的文本,我想“逃离”特殊字符能够编译我的程序,但我不知道是/: - =特殊字符?我还需要逃避它们吗?下面是例子c中有什么特别的字符?
static const char *postthis="text and spec chars";
,这里是示例文本的,我希望把
<text:Text
text:text="http://text.text.text/text/text/"
text:text="text:text:text-text-text">
<text:Text>
<text text="http://text.com/text">
<productID>20630175</textID>
</text>
</text:text>
</text:text>
所以我把\ <前“,但再次我有错误,我需要什么逃脱,怎么样?
static const char *postthis="\<text:Text
text:text=\"http://text.text.text/text/text/\"
text:text=\"text:text:text-text-text\"\>
\<text:Text\>
\<text text="http://text.com/text\"\>
\<textID\>20630175\</textID\>
\</text\>
\</text:text\>
\</text:text\>";
C“simple-escape-sequence”:\'\“\?\\ \ a \ b \ f \ n \ r \ t \ v – chux