/*squeese:delete all k,m from s1 and s2*/
void squeese(char s1[],char s2[])
{
int i,j,k,m;
for(i=j=k=m=0;s1[i] !='\0';i++)
if(s1[i] !=s2[j]){
s1[k++]=s1[i];
s2[m++]=S2[j];
}
s1[k]='\0';
s2[m]='\0';
}
squeeze(s1,s2),将字符串s1中任何与字符串s2中匹配的字符都删除
最新推荐文章于 2021-07-26 13:37:00 发布