found=1 } temp=cht; }
temp=&temp[j]; /* 回到字符串t的某一位置*/ }
s[i]=chs; }
s=&s[i]; /* 回到字符串s的某一位置*/ }
if(maxlen==0)
return NULL; /* 未找到最长公共单词,返回NULL */ else{
res[maxlen+1]=?\\0?;
return res; /* 找到最长公共单词,返回该单词 */ } }
found=1 } temp=cht; }
temp=&temp[j]; /* 回到字符串t的某一位置*/ }
s[i]=chs; }
s=&s[i]; /* 回到字符串s的某一位置*/ }
if(maxlen==0)
return NULL; /* 未找到最长公共单词,返回NULL */ else{
res[maxlen+1]=?\\0?;
return res; /* 找到最长公共单词,返回该单词 */ } }
下一篇:第7章习题解