去掉空格-题解(Java代码) 摘要:```java “End of file”在c++中有个简写是EOF,比如while(cin>>a&&a!=EOF),当你输入完a类型的数据是,你输入其他类型的数据就会结束输入,比如a是int型,那…… 题解列表 2020年02月29日 0 点赞 0 评论 693 浏览 评分:9.9
去掉空格-题解(Java代码) 摘要: import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2020年06月21日 0 点赞 0 评论 641 浏览 评分:9.9
题解 1196: 去掉空格 摘要:参考代码:#include<stdio.h>#include<string.h>#define N 80 typedef char str[N]; //重定义一个含有80个元素的字符数组 v…… 题解列表 2021年10月22日 0 点赞 1 评论 571 浏览 评分:9.9
去掉空格【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 评论 692 浏览 评分:9.9
1196: 去掉空格(最简代码) 摘要:解题思路:使用if判断,如果不是空格的话则打印参考代码:#include <stdio.h> int main() { char p; while(scanf("%c",&p)!=E…… 题解列表 2022年01月09日 0 点赞 1 评论 529 浏览 评分:9.9
含有结束语句的去空格程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; int i,j[100],k=0; char en…… 题解列表 2022年01月24日 0 点赞 3 评论 497 浏览 评分:9.9
去掉空格 if(s==' ') printf("") 摘要:#include <stdio.h> int main() { char s; while(scanf("%c",&s)!=EOF){ if(s=='\n') pri…… 题解列表 2022年04月04日 0 点赞 0 评论 386 浏览 评分:9.9
去掉空格(简单篇) 摘要:解题思路:用while循环输入字符串,当输入"End of file"时结束循环。遍历每次输入的字符串,当遍历到不是空格的字符时,原样输出。遍历到空格时输出'',也就是什么也不输出。注…… 题解列表 2022年04月23日 0 点赞 3 评论 639 浏览 评分:9.9
输入为多行,每行为一个字符串,字符串只由字母、数字和空格组成,长度不超过80。输入以“End of file”结束。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ int i,k,h,p,j,m=0; char a[100][…… 题解列表 2022年09月09日 0 点赞 0 评论 733 浏览 评分:9.9
1196: 去掉空格 ps:用最简单话解释这道题 摘要:```c #include #include int main() { char arr[100][100]; //定义一个二维数组。 int i =0, k =0,j=0; /…… 题解列表 2022年09月14日 0 点赞 0 评论 525 浏览 评分:9.9