摘要:
#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; ... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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; ... 阅读全文
摘要:
#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) { ... 阅读全文