void DeBlank(char string[])
{
// 将一个字符串中多余的空格删除,也即如果字符串中间有多个空格,则将其
// 变为1个
int i = 0, j = 0;
while (string[i] != '\0')
{
if (string[i] != ' ')
string[j++] = string[i++];
else if (string[i] == ' ' && string[i + 1] != ' ')
string[j++] = string[i++];
else
string[j] = string[i++];
}
string[j]='\0';
}