#include <stdio.h>
#include <ctype.h>
int main(void)
{
char ch;
while((ch=getchar()) !='\n')
{
if(isspace(ch)!=0)//是空格
putchar(ch);
else
{
putchar(ch);
putchar(ch);
}
}
putchar(ch);
return 0;
}
1 2 3
11 22 33
--------------------------------
Process exited after 8.275 seconds with return value 0
请按任意键继续. . .
pip
ppiipp
--------------------------------
Process exited after 12.29 seconds with return value 0
请按任意键继续.