以下是我刚写的代码:
#include "stdio.h"
main()
{
char str[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
char *p;
p=str;
int i;
for(i=0;i<13;i++)
{
if(*p==str[i])
printf("与%c对应的字母是:%c\n",*p,str[25-i]);
p++;
}
getch();
return 0;
}