#include <stdio.h>
int main()
{
char s[21];
int i,j,k;
gets(s);
/*************************************/
//在此编写代码并提交该部分代码
/*************************************/
puts(s);
return 0;
}
遍历字符串,如果是空格,则后续字符全部向前移动一个位置
char *p;
for(p=s;*p;p++)
if(*p==' ')
strcpy(p,p+1);
puts(c);