#include <myhead.h>
void del(char *s)
{
char *p=s;
char *q=s;
while(*p!='\0')
{
if(*p!=' ')
{
*q=*p;
p++;
q++;
}
else
p++;
}
*q='\0';
}
int main(int argc, const char *argv[])
{
char s[]="hello world hhhhh hhhhh";
del(s);
puts(s);
return 0;
}