摘要:
#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
青儿哥哥
阅读(1077)
评论(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
青儿哥哥
阅读(398)
评论(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
青儿哥哥
阅读(468)
评论(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
青儿哥哥
阅读(320)
评论(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
青儿哥哥
阅读(391)
评论(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
青儿哥哥
阅读(212)
评论(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
青儿哥哥
阅读(625)
评论(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
青儿哥哥
阅读(2380)
评论(0)
推荐(0)

浙公网安备 33010602011771号