这是找句子中的字符串 可是就是不对啊 帮帮忙
#include<stdio.h>int main()
{
int i=0,j=0;
char sentence[100]=(" Created is a not big ");
char word[5]=("not");
for (i=0,j=0;i<=2;j++)
{
if((sentence[j]==word[i])&&j<100)
{i++;}
if(sentence[j]!=word[i]&&j<100)
{i=0;}
if(j>=100)
break;
}
if(i==2)
{printf(" find\n");}
else
{printf("not find\n");}
printf("%d",i);
return 0;
}