n个字符串,1<n<20;找出n个字符串中相同的最长的子字符串;
如n=3
1.what is local bus?
2.this is local bus。
3.local bus is name sdhfj。
那么最长的共同子串是local bus
函数为char * findchar(const char**asd,const int n)
大体就是这些,用c去实现!!
如n=3
1.what is local bus?
2.this is local bus。
3.local bus is name sdhfj。
那么最长的共同子串是local bus
函数为char * findchar(const char**asd,const int n)
大体就是这些,用c去实现!!
本文介绍了一种使用C语言实现的方法,用于寻找多个字符串之间的最长公共子串。通过具体的例子说明了如何定义和调用函数findchar来解决这一问题。
1739

被折叠的 条评论
为什么被折叠?



