摘要:
#include<iostream>bool Replace(char *ori);void main(){ char * str= "i am happy now"; Replace(str);}bool Replace( char *ori){ if(NULL == ori) return false; int spacenum = 0; int len = strlen(ori); while('\0' != *ori) { if(' ' == *ori){ ++ spacenum; } ++ ori; } char *re 阅读全文