cstringsztemp=“d :vs项目 ini practicedebugini practice.exe”;
intnindex1=sztemp.find () ) );
//nIndex1=2; 从左向右搜索,并给出索引值
intnindex2=sztemp.reversefind () ) );
//nIndex2=31; 从右向左搜索,反向提供索引值
原文链接: https://blog.csdn.net/zxl 2712028/article/details/80512475