阅读背景:

reverse c

来源:互联网 
#include <stdio.h>
#include <stdlib.h>

char String[30];
int Length;

void Reverse(int N)
{
    if (N < Length)
    {
     Reverse(N + 1);
     printf("%c", String[N]);
    }
}

void main()
{
    printf("Please enter string : ");
    scanf("%s", &String);

    Length = strlen(String);
    printf("The reverse string : ");
    Reverse(0);
    printf("\n");
}
#include <stdio.h>
#include <stdlib.h>

char



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: