ifstream l_ifSrcImageList;
l_ifSrcImageList.open(p_strSrcImageFilelist.c_str());
if (!l_ifSrcImageList.is_open())
{
return;
l_ifSrcImageList.open(p_strSrcImageFilelist.c_str());
if (!l_ifSrcImageList.is_open())
{
return;
}
ofstream l_ofDstFeature;
l_ofDstFeature.open(p_strDstFeatureFilename.c_str());
if (!l_ofDstFeature.is_open())
{
l_ifSrcImageList.close();
l_ofDstNumList.close();
return;
}
l_ifSrcImageList>>l_iImageNum;
l_ofDstNumList<<l_iImageNum<<std::endl;
用完记得关闭(释放)