小郭奋斗的狗


私信TA

用户名:H1810820044

访问量:993

签 名:

等  级
排  名 5357
经  验 1506
参赛次数 5
文章发表 3
年  龄 0
在职情况 学生
学  校 贺州学院
专  业

  自我简介:

逮捕小谭梦想的猪

解题思路:

注意事项:

参考代码:

#include<stdio.h>

#include<string.h>

int exchange(char a[],char b[])

{

    int i,l,j = 0;

    l = strlen(a);

    for(i=l-1; i>=0; i--){

        b[j] = a[i];

        j++;

    }

    b[j] = '\0';    

    return 0;

}

int main()

{

    char a[1000],b[1000];

    gets(a);

    exchange(a,b);

    puts(b);

    return 0;

}


   


 

0.0分

0 人评分

  评论区