1 bool Replace(char *String, int length) 2 { 3 int index; 4 int charNum; 5 int blankNum; 6 char *workPtr; 7 8 if(NULL == String) 9 { 10 return false; 11 } 12 13 charNum = 0; 14 blankNum = 0; 15 workPtr = String; 16 while((*workPtr) != '
1 bool Replace(char *String, int length) 2 { 3 int index; 4 int charNum; 5 int blankNum; 6 char *workPtr; 7 8 if(NULL == String) 9 { 10 return false; 11 } 12 13 charNum = 0; 14 blankNum = 0; 15 workPtr = String; 16 while((*workPtr) != '