最大公共子串(C語言實現)

給定兩個字符串A和B,輸出A和B中的最大公共子串。好比A=」aocdfe」,B=」pmcdfa」,則輸出「cdf」 方法1:web #include<stdio.h> #include<stdlib.h> #include<string.h> char *commstring(char *str1,char *str2) { char *s1,*s2; int i,j;
相關文章
相關標籤/搜索