摘要: #include #include #include #define MAXCOUNT 2*100 char *transformation(char* str) { int len=strlen(str); char *buf=new char[len+1]; char *p=str; char *q=p+1; int count=1; ... 阅读全文
posted @ 2017-01-10 20:10 邹大佳 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include #include #include //using namespace std; char *get16String(long num) { int i=0; char* buffer=(char*)malloc(11); char* temp; buffer[0]='0'; buffer[1]='x'; buffe... 阅读全文
posted @ 2017-01-10 19:21 邹大佳 阅读(243) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; void RevStr(char *src) { char *start=src,*end=src,*ptr=src; while(*ptr++!='\0') { if(*ptr==' '||*ptr=='\0') { end=ptr-1; ... 阅读全文
posted @ 2017-01-10 18:11 邹大佳 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #include #include char *strstr(char* src,char *sub) { if(src==NULL||NULL==sub) { return src; } const char *bp=src; const char *sp=sub; while(*src) { ... 阅读全文
posted @ 2017-01-10 18:01 邹大佳 阅读(3145) 评论(0) 推荐(0) 编辑