<span style="font-family: Arial, Helvetica, sans-serif;"> int imgecount=0; //累加变量须设置为全局变量</span>
<pre name="code" class="cpp"> CString str;
str.Format("%d",imgecount);
cvSaveImage("C:\\Users\\洪栋\\Desktop\\调试图片\\样本(72,80,48)\\"+str+".jpg",iplImage);
imgecount++;