64,649
社区成员
发帖
与我相关
我的任务
分享
while(1)
{
nPos=str.find("BC",nPos);
if (nPos==string::npos)
break;
cout<<nPos++<<endl;
}
while(1)
{
nPos=str.find("BC",nPos);
if (nPos-1==string::npos)
break;
cout<<nPos++<<endl;
}