#include stdio.h
#include stdlib.h /*与malloc.h差不多*/
#include string.h
#define maxlen 100
strUCt persons
{ char name[10]; /*定义结构体数组用于缓存数据*/
char addr[20];
char phnum[10];
}persons[maxlen];
;
;
;
typedef struct lnode{ /*通讯录结构中结点的定义*/
char name[10]; /*姓名*/
char addr[20]; /*地址*/
char phnum[10]; /*电话*/
struct lnode *next;
}listnode,*linklist;
;
;
;
linklist head=NULL,r=NULL; /*定义头指针和尾指针*/
listnode *s,*p0,*p1,*p2,*p3,*p4,*p5,*p6,*...[ 查看全文 ]