摘要: spilt a list and become two sublists void spilt(struct node *source, struct node** front, struct code** back){ int len = count(source); int i; struct node* current =source; if(lennext;... 阅读全文
posted @ 2007-09-18 21:12 HonestMan 阅读(424) 评论(3) 推荐(0) 编辑
摘要: I know it's very simple but not easy. I decieded that I write it by hand. its similar to strLen funtion Maybe i am a dummy. I use C. version 1 int Count(char *s){ int n=0; while(*s){ n... 阅读全文
posted @ 2007-09-18 20:05 HonestMan 阅读(162) 评论(0) 推荐(0) 编辑
摘要: i search in google to find the solution remove repeat char from a string, but failed. so write it by myselft.... i use C. char * RemoveRepeatChar(char *S){ char *temp=S, *move; //1. base ==Null if(*s... 阅读全文
posted @ 2007-09-18 15:13 HonestMan 阅读(559) 评论(4) 推荐(0) 编辑