我正在尝试输出生成的头文件,其中包含生成的定义.但由于这些生成的定义是多行的,我需要用"\"继续它们,我需要找到一种方法将它们输出到文件中.但是使用
std::ofstream Target(PathToTarget);
Target << "Some Output\\n";
Run Code Online (Sandbox Code Playgroud)
只是输出
Some Output
Run Code Online (Sandbox Code Playgroud)
到目标文件.我怎么能解决这个问题?