[Sapphire]1196:去掉空格(满足题目所有条件包括退出但运行错误/(ㄒoㄒ)/~~)(C语言代码) 摘要:解题思路:嗯······由于我出错了我就不解释了,但确确实实满足题目的所有条件和样例,有大佬可以指点一下迷津吗?参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2022年02月18日 0 点赞 2 评论 784 浏览 评分:7.1
Hifipsysta-1196-去掉空格(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string str, str_dup; while…… 题解列表 2022年02月05日 0 点赞 0 评论 386 浏览 评分:0.0
含有结束语句的去空格程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; int i,j[100],k=0; char en…… 题解列表 2022年01月24日 0 点赞 3 评论 636 浏览 评分:9.9
去掉空格C语言 摘要:#include<stdio.h>#include<string.h>int main(){ char str[100],str1[100];int i,k=0; while(gets(s…… 题解列表 2022年01月17日 0 点赞 0 评论 309 浏览 评分:0.0
编写题解 1196: 去掉空格(避免使用gets()的解法) 摘要:### 前言 **看到大家用的都是gets的解法,而gets由于输入易溢出的问题已经不时兴了。这里为大家提供只用scanf的方法。 ****可改进之处欢迎各位大佬指正** ```c #inc…… 题解列表 2022年01月16日 0 点赞 4 评论 368 浏览 评分:9.0
1196: 去掉空格(最简代码) 摘要:解题思路:使用if判断,如果不是空格的话则打印参考代码:#include <stdio.h> int main() { char p; while(scanf("%c",&p)!=E…… 题解列表 2022年01月09日 0 点赞 1 评论 673 浏览 评分:9.9
1196: 去掉空格 摘要:关键是运用find()函数和erase()函数。#include<bits/stdc++.h> using namespace std; int main(){ vector<in…… 题解列表 2021年12月10日 0 点赞 0 评论 761 浏览 评分:0.0
简单易懂-------不妨看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[80]; while (gets(arr)) { for…… 题解列表 2021年11月28日 0 点赞 0 评论 328 浏览 评分:0.0
去掉空格【C语言】 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100];int i,j[100],k=0; while(ge…… 题解列表 2021年11月21日 0 点赞 1 评论 874 浏览 评分:9.9