不会用str,,,,,```
#include<bits/stdc++.h> using namespace std; char a[1111],b[1111]; int main() { cin>>a; cin>>b; cout<<strstr(a,b); /*if(strstr(a,b)!="NULL") { cout<<b<<" is substring of "<<a; return 0; } if(strstr(b,a)!="NULL") { { cout<<a<<" is substring of "<<b; return 0; } } cout<<"No substring";*/ }
为什么输入asdasd和asd输出的是asdasd输入asd和qwe啥都没有