WHAT?!
查看原帖
WHAT?!
1103166
Ly145666楼主2024/5/26 14:06

为什么会错?!

#include<bits/stdc++.h>
using namespace std;
int x,y,z;int a[10006];
string k,l;
int main()
{
	getline(cin,k);
	getline(cin,l);
	x=l.find(k);
	if(x!=-1)
	{
		cout<<k<<" is substring of "<<l;
	}
	else
		cout<<"No substring";
	return 0;
 } 

救救我

2024/5/26 14:06
加载中...