/* 密码变换问题 */#include#include #define MAXLINE 80void encrypt(char*);int main(void){ char line[MAXLINE]; printf("输入字符串"); gets(line); encrypt(line); printf("%s%s\n","After being encrypted:",line); return 0;}void encrypt(char*s){ for(;*s!='\0';s++) if(*s=='z') *s='a'; else *s=*s+1;}