解题思路:
注意事项:
参考代码:
#include<iostream>
#include<string>
using namespace std;
int main() {
string a;
while (getline(cin, a)) {
if (a == "End of file")
break;
for (int i = 0; i < a.size(); i++) {
if (a[i] == ' ')
continue;
cout << a[i];
}
cout << endl;
}
return 0;
}
0.0分
5 人评分
数列排序 (C语言代码)浏览:835 |
WU-蓝桥杯算法提高VIP-企业奖金发放 (C++代码)浏览:1175 |
The 3n + 1 problem (C语言代码)浏览:554 |
Hello, world! (C语言代码)浏览:714 |
出圈】指针malloc版浏览:355 |
sizeof的大作用 (C语言代码)浏览:1028 |
1048题解(读入回车问题)浏览:565 |
震宇大神的杀毒软件 (C语言代码)浏览:1080 |
C语言程序设计教程(第三版)课后习题12.1 (C语言代码)浏览:647 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:470 |