摘要:
1. 求两个字符串的最大公共字符串#include<iostream>usingnamespacestd;voidgetLength(constchar*src1,constchar*src2,int*l1,int*l2){if(src1==NULL||src2==NULL||strlen(src1)==0||strlen(src2)==0){*l1=0;*l2=0;return;}intpl1=0,pl2=0;inttpl1=0,tpl2=0;inttpl3=0,tpl4=0;if(src1[0]==src2[0]){getLength(src1+1,src2+1,&tp 阅读全文
posted @ 2012-11-26 15:35
做个不善的人
阅读(321)
评论(0)
推荐(0)
浙公网安备 33010602011771号