65,189
社区成员




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);
}