去掉空格(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char ch[80]; whil…… 题解列表 2023年11月23日 0 点赞 0 评论 509 浏览 评分:0.0
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ char a[100]; while(gets(a)) { kg(a); …… 题解列表 2023年12月07日 0 点赞 0 评论 417 浏览 评分:0.0
去掉空格(c语言新题解) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int removeSpace(char s[]){ int count=0; i…… 题解列表 2023年12月08日 0 点赞 0 评论 445 浏览 评分:0.0
c代码记录之去掉空格--水题 ```c#includeintmain(){chara;while((a=getchar())!=EOF)if(a!='')putchar(a);return0;}``` 题解列表 2024年01月16日 0 点赞 0 评论 462 浏览 评分:0.0
非常简单的思路(C语言) 解题思路:我们只需要用一个字符数组,存储字符串,然后使用for循环将字符串当中的不是空格的字符输出即可。注意事项:注意写while循环时的循环条件应该是while(gets(a)),而不是自己定义一个变量让他=4,跟题目一样只输入4个字符串。 题解列表 2024年01月23日 0 点赞 0 评论 603 浏览 评分:9.9
1196: 去掉空格--容易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){ int l=strlen(a); for(int i;…… 题解列表 2024年03月14日 0 点赞 0 评论 484 浏览 评分:0.0
使用String的replaceAll()方法把" "替换成"" 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月24日 0 点赞 0 评论 586 浏览 评分:0.0
1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: s = input() print(s.replace(' ', '…… 题解列表 2024年04月19日 0 点赞 0 评论 841 浏览 评分:0.0
编写题解 1196: 去掉空格(编程入门) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char arr[101]={0}; cha…… 题解列表 2024年04月26日 0 点赞 0 评论 633 浏览 评分:0.0