摘要: #include #include #include void max(char *str) { char *p = str; int max_len = 0; char *max_start = NULL; while(*p != '\0') { if(*p >= '0' && *p = '0' && *q max_len) ... 阅读全文
posted @ 2017-10-28 22:45 青儿哥哥 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void reverse(char *value) { int len = strlen(value); char *p = value; char *q = value + len - 1; while(p < q) { *p ^= *q; *q ^= *p; ... 阅读全文
posted @ 2017-10-28 22:19 青儿哥哥 阅读(385) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void combine(char *value,char *result,int m) { if(m == 1) { while(*value != '\0') { printf("%s%c\n",result,*value); val... 阅读全文
posted @ 2017-10-28 18:40 青儿哥哥 阅读(458) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; int is_huiwen(char *value,int low,int high,int len) { if(len == 0 || len == 1) return 1; if(value[low] == valu... 阅读全文
posted @ 2017-10-28 18:17 青儿哥哥 阅读(302) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; void del(char *str,char *sub) { char *head = NULL; char *p = NULL; head = p = str; int sublen = strlen(sub); ... 阅读全文
posted @ 2017-10-28 18:00 青儿哥哥 阅读(387) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; void del(char *str,char c) { char *head = NULL; char *p = NULL; head = p = str; while(*p != '\0') { ... 阅读全文
posted @ 2017-10-28 17:59 青儿哥哥 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; void convert(int num,vector &value) { if(num) { value.push_back(num%10); convert(num / 10,value); ... 阅读全文
posted @ 2017-10-28 17:47 青儿哥哥 阅读(610) 评论(0) 推荐(0) 编辑
摘要: nt second(int value[],int n) { int first = value[0]; int second = value[1]; int i = 0; for(i = 0;i first) { second = first; first = value[i]; ... 阅读全文
posted @ 2017-10-28 15:31 青儿哥哥 阅读(2324) 评论(0) 推荐(0) 编辑