0
已解决
王翰闻
新手守护
新手守护
1094 字符串的包含问题
王翰闻在2019-04-18 13:02:14追加了内容
#include <algorithm>
#include <iostream>
#include <cstring>
#include <string>
#include <cstdio>
#include <cmath>
using namespace std;
int main()
{
int s,ss;
string s1,s2;
getline(cin,s1);
getline(cin,s2);
s=s1.size();
ss=s2.size();
for(int i=1;i<=ss;i++)
{
if(s2[i]==s1[i])
{
cout<<s1<<" is included in "<<s2;
break;
}
else
{
cout<<"No including";
break;
}
}
return 0;
}
50分!!!