/*去除空格函数*/
void RemoveSpaces(){
int i = 0, j,k=0;
char str[CharN];
for (k = 0; k < STRLEN;k++)
{
str[k] = PicturePixelTemporary[k];//输入字符串
i++;
}
str[i] = ' ';
for (i = 0; str[i] != ' '; i++)
{
if (str[i] == ' ')
{
for (j = i + 1; str[j] != ' '; j++)
{
str[j - 1] = str[j];
}
str[j] = ' ';
}
else continue;
}
str[i - 2] = ' ';
cout<<"去掉空专格属后的字符串为:
";
for (i = 0; str[i] != ' '; i++)
//printf("%c", str[i]);
//printf("
");
cout << str;
}