1.main()
{char password[80];
int i;
scanf("%s",password);
for(i=0;password[i]!='\0';i++)
password[i]=password[i]+13;
}
2.#include "stdlib.h"
struct pw
{char ch1,ch2;
struct pw *next;}
main()
{struct pw p,head;
int i;
head=(struct pw *)malloc(sizeof(struct pw));
p=head;
for(i=1;i<=10;i++)
{scanf("%c",&p->ch1);
p->ch2=p->ch1+13;
p->next=(struct pw *)malloc(sizeof(struct pw));
p=p->next;
p->next=NULL;}
p=head;
}
用ascii码 + 13 不就得了吗!!!