DataStruct.h 文件内容
#include <stdio.h>
#include <stdlib.h>
#define MAP_LEN 17
#define MAX_STR 100
typedef struct SData{
char *data ;
int length ;
}Data , *PData;
static char mappings [MAP_LEN][2] = {
{'a','b'},
{'c','d'},
{'e','f'},
{'h','i'},
{'j','k'},
{'l','m'},
{'n','p'},
{'q','r'},
{'s','t'},
{'u','v'},
{'w','x'},
{'y','z'},
{'1','9'},
{'2','8'},
{'3','7'},
{'4','6'},
{'5','0'}} ;
PData encryption(PData data) ;
PData decryption(PData data) ;
void map(char *chr) ;
void move_to(char *chr) ;
void go