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