//
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s,s1;
int pos;
while( getline( cin,s ) )
{
getline( cin,s1 );
pos=s.find( s1 );
if( pos!=-1 ) s.erase( pos,s1.size() );
cout<<s<<endl;
}
return 0;
}
repeat_string删除部分字符
猜你喜欢
转载自blog.csdn.net/qq_63173957/article/details/124350300
今日推荐
周排行