1196: 去掉空格 摘要:#这个代码是适配一次性输入的代码,对于dev或者vs等运行环境一行一行输入的话可能会出现输入一次转换一次的问题,稍微改进即可。 ```cpp #include #include #includ…… 题解列表 2023年02月23日 0 点赞 1 评论 179 浏览 评分:9.9
去掉空格-题解(C++代码) 摘要:#### 原题链接:[去掉空格](https://www.dotcpp.com/oj/problem.php?id=1196 "去掉空格") #### 解题思路: **1、去掉空格的题目,很明…… 题解列表 2019年07月20日 0 点赞 0 评论 801 浏览 评分:9.9
1196: 去掉空格 摘要:```cpp #include #include using namespace std; int main() { string str,temp; while(get…… 题解列表 2022年12月30日 0 点赞 0 评论 242 浏览 评分:9.9
1196: 去掉空格 摘要:```cpp #include using namespace std; int main() { char s[1000]; while(gets(s)) { …… 题解列表 2022年12月06日 0 点赞 0 评论 197 浏览 评分:9.9
去掉空格(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<string> int main() { string…… 题解列表 2022年11月03日 0 点赞 0 评论 470 浏览 评分:9.9
去掉空格-C++利用字符串流超简单做法 摘要: **stringstream可以自动去除空格** ```cpp #include #include using namespace std; int main() { str…… 题解列表 2020年07月22日 0 点赞 0 评论 1131 浏览 评分:9.7
去掉空格-题解(C++代码) 摘要: #include #include #include using namespace std; const int maxn=100; int…… 题解列表 2019年12月30日 0 点赞 0 评论 941 浏览 评分:9.0
去掉空格-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main() { string a; while (g…… 题解列表 2020年11月25日 0 点赞 0 评论 556 浏览 评分:8.4
去掉空格 (C++代码)最易懂 摘要:``**gets()函数与cin的用法相同,但gets输入字符串中有空格也可以直接输入** ```cpp #include #include using namespace std; int…… 题解列表 2020年03月27日 0 点赞 0 评论 654 浏览 评分:8.0