64,282
社区成员
发帖
与我相关
我的任务
分享
for(umap::iterator iter = m.begin(); iter != m.end(); iter++)
{
if(iter->first.indexNo== getData.indexNo)
{
string Info= iter->first.Info;
vector<string> result;
boost::split( result, sInfo, boost::is_any_of( "/" ), boost::token_compress_on );
Code = result[0];
Name = result[1];
break;
}
}
ofstream in;
in.open("data.txt",ios::app);
in<<"编码"<<Code<<"\t"
<<"名称"<<Name<<"\t"
<<"价格"<<price<<"\t"
<<"\n";
in.close();