解
2024-01-03 17:14:04
发布于:浙江
3阅读
0回复
0点赞
#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b;
cin >>a>>b;
if(a.find(b)!=-1)
cout << b << " is substring of " << a;
else if(b.find(a)!=-1)
cout << a << " is substring of " << b;
else
cout << "No substring";
}
这里空空如也
有帮助,赞一个