第一点不对!!
#include<bits/stdc++.h>
using namespace std;
char d[55],c[55];
int main()
{
cin.getline(d,55);
cin.getline(c,55);
int flag=0,len1=strlen(d),len2=strlen(c);
int k=0;
if(strstr(d,c) != NULL)
{
cout<<c<<" is substring of "<<d;
}
else if(strstr(c,d) != NULL)
{
cout<<d<<" is substring of "<<c;
}
else
{
cout<<"No substring";
}
return 0;
}