64,648
社区成员
发帖
与我相关
我的任务
分享
std::ofstream _out;
_out.open(_fName.data());
while(…………) //程序连续运行
{
string str="……………………";//这里会写入一段字符串
_out << str << endl;
_out.flush();
}
std::ofstream _out;
_out.open(_fName.data());
while(…………) //程序连续运行
{
string str="……………………";//这里会写入一段字符串
_out << str << endl;
_out.flush();
_out.close();
_out.open(_fName.data(),std::ios::app);
}