您的位置:首页 > 其它

【SzNOI语法百题】【d066】删除空格

2015-01-31 10:22 162 查看
#include <stdio.h>
int main(){
int count = 0;
char a[100], *p = a;
gets(a);
while(*p != '\0'){
if(*p != ' '){
printf("%c",*p);
count++;
}
p++;
}
printf("\n%d", count);
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: