摘要: 编一个函数,输入一个字符串,要求做一个新字符串,把其中所有的一个或多个连续的空白字符都压缩为一个空格。这里所说的空白包括空格、'\t'、'\n'、'\r'。例如原来的字符串是:This Content hoho is ok ok? file systemuttered words ok ok ?end.压缩了空白之后就是:This Content hoho is ok ok? file system uttered words ok ok ? end. 1 #include <stdio.h> 2 int judge_char(cha 阅读全文
posted @ 2013-06-18 02:31 net小伙 阅读(803) 评论(0) 推荐(0) 编辑