#include
#include
int QstringQuery(char *text,char *query);
int main(){
printf("hello\n");
printf("the max length of same substring:%d",QstringQuery("nimen hao wo shi yu pan","shi0321"));
}
int QstringQuery(char *text,char *query){
int i=0,j=0,k=0,m,Q,T,Flag=0;
T= strlen(text);
Q = strlen(query);
//Q为短的字符串
for(i=Q;i<=Q;i--){ // i the lenth of target string
puts("i=");
putchar('0'+i);
putchar('\n');
for(j=0;j<=Q-i;j++){ //j the begin position of target string in query
for(k=0;k<=T-i;k++){ //k the begin position of target string in text
for(m=0;m
< code>