我想写出要在文件中的引号,但我不知道语法应该如何。
ofstream file("myfile.txt");
if ( file.is_open())
{
file << "\n";
file << ""type of file""<< "=" << '\n'; // obviously this is wrong
file << "name = \n";
}
我希望文本文件看起来像这样:
“文件类型”=
名字=
我怎样才能做到这一点?