How do i put programming partheses? I mean i am writing a programe that wrirtes PHP code in a file using fstream.However im having a hard time doing that.Like this piece of code.
In strings, the '\' character is reserved as an escape character. Therefore, to use characters like quotation marks or the backslash itself, you must "escape it" as Anon has mentioned.
For example, to write
"\r\n"
, you would write out:
cout << "\"\\r\\n\"";
Notice how there are four characters being escaped.