摘要:
#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) ... 阅读全文
摘要:
#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; ... 阅读全文
摘要:
#include #include #include void combine(char *value,char *result,int m) { if(m == 1) { while(*value != '\0') { printf("%s%c\n",result,*value); val... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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); ... 阅读全文
摘要:
#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') { ... 阅读全文
摘要:
#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); ... 阅读全文
摘要:
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]; ... 阅读全文