This program is still incorrect

liang_ll (applecore)
Src1 search (Src1 i, Src1 j, Src2 p, Src2q);
{
Src1 tSrc1, mSrc1=i;
Src2 tSrc2=p;
while(mSrc1!=j){
tSrc1=mSrc1;
tSrc2=p;
while((*tSrc1==*tScr2)&&(tSrc2!=q)&&(tSrc1!=j))
{
++tSrc1;
++tSrc2;
}
if ((tSrc2==q)&&(*tScr1==*tScr2))
return mSrc1;
mSrc1++;
}
return j;
}
}
(#43316@0)
2001-4-10 -05:00

回到话题: a c++ test for c++ friends

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=43316