2012年4月20日
摘要: 《算法设计与分析》P56 1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 5 void LCSLength(int m, int n, char *x, char *y, int c[][10], int b[][10]) //定义函数时,**c,**b不会用 6 { 7 int i, j; 8 for(i = 1; i <= m; ++i){ 9 c[i][0] = 0;10 b[i][0] = 0;//可以不用初始化11 }12 for(i ... 阅读全文
posted @ 2012-04-20 11:41 tomctx 阅读(205) 评论(0) 推荐(0) 编辑