如何用c语言进行解密

从键盘输入个串(长度不大于101 个字符),将,其中的大写字母改写成后一个大写字母(列如: D 改成 E ,特别的若为则改为 A 再转换为对应的小写字母存放在数组中 N 位置,其他学符不变

img

#include <stdio.h>
#include<string.h>
int main()
{
    char t[101];
    gets(t);
    int len=strlen(t);
    int j,k,h=0;
    int N[101]={0};
    for (j=0;j<len;j++)
    {
        if(t[j]<'Z'&&t[j]>='A')
        {
            t[j]=t[j]+1;N[h]=t[j]+32;h++;
        }
        else if(t[j]=='Z')
        {
            t[j]=65;N[h]=t[j]+32;h++;
        }
        else
        {
            N[h]=t[j];h++;
        }
        
    }
    for (j=0;j<len;j++)
    {
        printf("%c",N[j]);
    }
    return 0;
}