题解 1196: 去掉空格

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

筛选

简单易懂-------不妨看看

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

1196: 去掉空格

摘要:关键是运用find()函数和erase()函数。#include<bits/stdc++.h> using namespace std;   int main(){     vector<in……

去掉空格C语言

摘要:#include<stdio.h>#include<string.h>int main(){    char str[100],str1[100];int i,k=0;    while(gets(s……

1196: 去掉空格

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int yw;int main(){ while(getline(……

  编写题解 1196: 去掉空格

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

题解 1196: 去掉空格

摘要:解题思路:注意事项:参考代码:int main(){     char a[100];     int len,i;     char end[]="End of file";     whi……

去掉空格C语言

摘要:解题思路:首先赋值,利用循环函数,依次判断,只要遇到空格,就暂时调出循环,否则就打印该值注意事项:参考代码:#include"stdio.h"#include"string.h"int main(){……

1196: 去掉空格

摘要:解题思路:(1)思路:           ①while循环遍历,输入各字符串,                      ②char c2[80]={"End of file"};  //设置结束条……

不能再复杂了QWQ

摘要:解题思路:    传统思路注意事项:    遇到多个空格直接返回上一行qaq参考代码:#include<stdio.h>#include<string.h>#define HANG 100#defin……