题目:请实现一个函数,把字符串中的每个空格替换成”%20“。例如输入”We are happy.",则输出“We%20are%20happy."。
1 void replaceBlank(char string[], int length) 2 {//length为string的总容量 3 if (string == NULL && length <= 0) 4 return ; 5 int oriLength = 0; 6 int numberOfBlank = 0; 7 int i = 0; 8 while (string[i]!='