- 博客(5)
- 资源 (16)
- 收藏
- 关注
原创 判断字符串是否为回还
#include #include int fun(char *p){ if (p==NULL) { return -1; } int i=0; int length = strlen(p); int j=length-1; while (i<=j && p
2011-10-14 00:32:12 669 1
原创 组合的C语言实现
#include #include void Compine(char* str, char* des, int n, int m){ if (0 == m) { des = des - n; des[n] = '\0'; printf("%s\n",des
2011-10-14 00:26:36 864
原创 全排列C语言实现
// 全排列,查找A(n,m)的所有情况,如“12”,则12,21#include #include void pailie(char *str, int m, int n){ if (n==0) { str = str-m; printf("%s\n",str)
2011-10-14 00:21:03 1837
原创 递增有序数组中,查找某一个数字的位置
// 递增有序数组中,查找某一个数字的位置#include int foo(int p[], int s, int e, int value) { if (s>e) { printf("Can't find [%d]\n",value); return -1;
2011-10-14 00:14:28 1315
原创 在字符串中查找出现次数最多的子串
// 判断字符串中,出现次数最多的子串#include #include void getMaxSubString(char* str){ if (str==NULL) { return; } char* pStart = str; char subStrin
2011-10-14 00:05:30 1119
EffectiveC++
2010-03-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人