字符串反转(指针实现的)
●杨毅
技术交流Q群:570968411
展开
-
字符串反转,指针实现,挺好的
代码没几行,不过挺好的 char* Rever(char *str) { char* left = str; char temp; while(*str++); str = str - 2; while(left { temp = *left; *left++ = *str; *str-- = temp; } return (start)原创 2012-06-04 13:34:24 · 574 阅读 · 0 评论 -
10115 Automatic Editing
/* Rule Find Replace-by 1. ban bab 2. baba be 3. ana any 4. ba b hind the g Replace the first occurrence of the find string within the text by the replace-by string, then try to perform the sam原创 2013-11-14 13:41:29 · 501 阅读 · 0 评论