王贺


私信TA

用户名:MrSupW

访问量:83714

签 名:

LikeWind

等  级
排  名 15
经  验 21159
参赛次数 1
文章发表 198
年  龄 20
在职情况 学生
学  校 西北工业大学
专  业 软件工程

  自我简介:

What can not destory me only makes me stronger!

 

0.0分

18 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换

万能编程问答

代码解释器

  评论区

逆向思维,牛呀
2021-11-02 15:34:17
还可以这样操作呀,学会了
2021-09-11 20:40:35
一开始看到觉得很有道理,然后自己学题主套路一敲,这非常取巧,我不想用这种方式答题
2021-03-24 08:34:02
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


void delect_char(char str[], char target[]);
int main()
{
    // int size = 1024;
    // char * buff = (char*)malloc(size);
    char ch[] = "End of file";
    char ch2[100];

    while(gets(ch2) != NULL && strcmp(ch2, ch) != 0)
    {
        if(strcmp(ch2, ch) != 0)
        {
            delect_char(ch2,ch);
        }
    }



    return 0;
}

void delect_char(char str[], char target[])
{
    int i,j;
    for (i=j=0; i<strlen(str); i++)
    {
        if (str[i] != ' ')
            str[j++]= str[i];
    }
    str[j] = '\0';
    printf
2021-03-20 00:53:43
这会不会过于取巧?
2020-06-30 17:05:09
  • «
  • 1
  • »