题解 1196: 去掉空格 摘要:#include #include void fun(char str[]){ int j; int length = strlen(str); for (int …… 题解列表 2025年02月26日 2 点赞 0 评论 230 浏览 评分:8.0
去掉空格C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(char *a) { int i,j; for(i=…… 题解列表 2024年06月28日 2 点赞 0 评论 393 浏览 评分:9.9
fgets函数解决,思路稍稍复杂了些 摘要:解题思路:见注释注意事项:记住封口,不然烫烫烫烫烫烫参考代码:#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <s…… 题解列表 2024年06月25日 0 点赞 0 评论 196 浏览 评分:0.0
编写题解 1196: 去掉空格(编程入门) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char arr[101]={0}; cha…… 题解列表 2024年04月26日 0 点赞 0 评论 197 浏览 评分:0.0
1196: 去掉空格--容易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){ int l=strlen(a); for(int i;…… 题解列表 2024年03月14日 0 点赞 0 评论 147 浏览 评分:0.0
非常简单的思路(C语言) 摘要:解题思路:我们只需要用一个字符数组,存储字符串,然后使用for循环将字符串当中的不是空格的字符输出即可。注意事项:注意写while循环时的循环条件应该是while(gets(a)),而不是自己定义一个…… 题解列表 2024年01月23日 0 点赞 0 评论 151 浏览 评分:9.9
c代码记录之去掉空格--水题 摘要: ```c #include int main(){ char a; while((a=getchar())!=EOF) if(a!=' ') …… 题解列表 2024年01月16日 0 点赞 0 评论 96 浏览 评分:0.0
去掉空格(c语言新题解) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int removeSpace(char s[]){ int count=0; i…… 题解列表 2023年12月08日 0 点赞 0 评论 111 浏览 评分:0.0
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ char a[100]; while(gets(a)) { kg(a); …… 题解列表 2023年12月07日 0 点赞 0 评论 80 浏览 评分:0.0