//密码加密 #include<stdio.h> #include<string.h> #define MAXLINE 80 //字符串少于80个字符 void encrypt(char*); 自定义 函数 int main(void) { char line[MAXLINE]; printf("Input the string:"); gets(line); //输入一串字符 encrypt(line); printf("%s%s ","After being encryted:",line); //输出一串字符 return 0; } void encrypt(char *s) //调用自定义函数 { for(;*s!='