空格替换
摘要:
1 #include 2 #include 3 using namespace std; 4 5 void f(char *s) 6 { 7 char *p=s; 8 while(*s!='\0') 9 {10 if(*s==' ')11 {12 while(*p!='\0')13 p++;14 while(p>s)15 {16 *(p+2)=*p;17 p--;1... 阅读全文
posted @ 2014-03-13 10:21 crane_practice 阅读(170) 评论(0) 推荐(0) 编辑