题解 1196: 去掉空格

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

去掉空格(超级容易理解的C语言版)

摘要:解题思路:输入多行带空格的可以用gets,遇到空格便把后面一个元素赋给当前空格,判断连续多个空格可以用while。注意事项:因为最后的字符串要加上'\0',所以循环变量定义在函数内而不……

去掉空格 C语言 通俗易懂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    for (char a[100] = { 0 }; gets(a);)……

字符串去掉空格

摘要:解题思路:注意事项:参考代码:#include<string.h>去掉空格int main(){ int i; int j = 4; int n; char arr[1000]; while (j) ……

去掉空格C语言

摘要:解题思路:误打误撞,代码小白,望大神在评论区指点一二注意事项:参考代码:#include<stdio.h>int main(){       char d[81];       while(gets(……

1196: 去掉空格

摘要:```cpp #include #include using namespace std; int main() { string str,temp; while(get……

去掉空格(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[80]; while(gets(a)) { f……

电报加密,简单容易懂的

摘要:解题思路:注意事项:就注意‘z’这个字母就行了,其他在Ascll表后移一位参考代码:#include<stdio.h>#include<string.h>int main(){ int l; char……

1196: 去掉空格

摘要:```cpp #include using namespace std; int main() { char s[1000]; while(gets(s)) { ……