解题思路:
注意事项:
参考代码:
#include<iostream> #include<iomanip> #include<cmath> #include<string> #include <vector> #include<algorithm> #include<stdio.h> using namespace std; const int maxn = 100; int main() { string a; while (getline(cin, a)) { if (a == "End of file") return 0; string s; for (int i=0;i<a.length();i++) if (isgraph(a[i])) //除了空格以外的字符 s += a[i]; cout << s << endl; } return 0; }
0.0分
0 人评分
Tom数 (C语言代码)浏览:735 |
点我有惊喜!你懂得!浏览:3872 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:458 |
C语言训练-计算t=1+1/2+1/3+...+1/n (C语言代码)浏览:858 |
【出圈】 (C语言代码)浏览:553 |
字符串的输入输出处理 (C语言代码)浏览:922 |
C语言程序设计教程(第三版)课后习题6.5 (C语言代码)浏览:748 |
printf基础练习2 (有点不明白)浏览:836 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:534 |
【明明的随机数】 (C语言代码)浏览:785 |