去掉空格(太折磨了,但这个代码大家都看得懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; char ch; int i = 0,coun…… 题解列表 2023年02月10日 0 点赞 0 评论 160 浏览 评分:9.9
【去掉空格】不能再简单的C语言版:简单,但能解决问题,思路也清晰 摘要:解题思路:输入一个字符,就判断其是否为空格,不是就输出。注意事项:参考代码:#include <stdio.h> int main() { char ch; while (…… 题解列表 2023年02月13日 0 点赞 2 评论 176 浏览 评分:9.9
去掉空格十分简洁的c语言代码 摘要:解题思路:逐个写入字符,用if判断为空格则不打印,其他情况打印注意事项:注意循环结束条件,当按下ctrl+z时结束循环参考代码:#include<stdio.h>#include<string.h>i…… 题解列表 2023年02月15日 0 点赞 0 评论 222 浏览 评分:9.9
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: list1 = input().split() for i in list1: …… 题解列表 2023年02月15日 0 点赞 0 评论 388 浏览 评分:9.9
1196: 去掉空格 摘要:#这个代码是适配一次性输入的代码,对于dev或者vs等运行环境一行一行输入的话可能会出现输入一次转换一次的问题,稍微改进即可。 ```cpp #include #include #includ…… 题解列表 2023年02月23日 0 点赞 1 评论 179 浏览 评分:9.9
去掉空格(c语言代码) 摘要:```c #include #include void removeblank(char* s); int main() { char strs[101] = { 0 }; wh…… 题解列表 2023年04月28日 0 点赞 0 评论 230 浏览 评分:9.9
C语言简单易懂 摘要:解题思路:是空格跳过,不是空格输出!!!注意事项:参考代码:#include <stdio.h>int main (){ char a[100]; while (gets(a)){ …… 题解列表 2023年09月12日 0 点赞 0 评论 231 浏览 评分:9.9
非常简单的思路(C语言) 摘要:解题思路:我们只需要用一个字符数组,存储字符串,然后使用for循环将字符串当中的不是空格的字符输出即可。注意事项:注意写while循环时的循环条件应该是while(gets(a)),而不是自己定义一个…… 题解列表 2024年01月23日 0 点赞 0 评论 252 浏览 评分:9.9
去掉空格C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(char *a) { int i,j; for(i=…… 题解列表 2024年06月28日 2 点赞 0 评论 501 浏览 评分:9.9
非常简单,关键是gets与scanf的使用和区别 摘要: #include #include int main() { char ch[81];// 防止超出 末尾有'\0' while (gets(ch))// gets函数读取成…… 题解列表 2022年11月10日 0 点赞 0 评论 316 浏览 评分:9.8