CFile outfile;
outfile.Open( fileName, CFile::modeCreate);
//排序
partList.sort();
list<Part>::const_iterator it;
for (it = partList.begin(); it != partList.end(); it++ )
{
outfile.Write((*it).Value, PART_SIZE);
}
outfile.Close();
其中part是一个List<part>, part.Value为一个字符数组
outfile.Open( fileName, CFile::modeCreate);
//排序
partList.sort();
list<Part>::const_iterator it;
for (it = partList.begin(); it != partList.end(); it++ )
{
outfile.Write((*it).Value, PART_SIZE);
}
outfile.Close();
其中part是一个List<part>, part.Value为一个字符数组
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货