# include<stdio.h>
# define NONBLANK 'a'/*replace string of blanks with a single blank*/
main ()
{
int c,lastc;
lastc = NONBLANK;
while((c = getchar())!=EOF)
{
if (c != '')
putchar(c);
if (c == '')
if (lastc != '')
putchar(c);
lastc = c;
}
}
posted on
2013-10-17 20:07欧小弟
阅读(182)
评论(0)
编辑收藏举报