#include
#include
#include
#include
#include
struct addressbook
;typedef struct addressbook addressbook;
typedef struct addressbook *link;
int main_menu();
void add_recort(link *head,link new_node);
void delete_recort(link *head);
void scan_recort(link *head);
void search_recort(link *head);
void amend_recort(link *head);
/********鍒涘緩閾捐〃澶?******/
void create_link(link *head)
/********涓誨嚱鏁?*******/
int main()}}
/********涓昏彍鍗曞嚱鏁?******/
int main_menu()
/********娣誨姞鑱旗郴浜?*******/
void add_recort(link *head,link new_node)
printf("**********************娣誨姞鑱旗郴浜?*********************\n");
tmp = *head;
if(*head == null)
else
printf(" 搴忓佛:");
scanf("%d",&new_node->num);
printf(" 鑱旗郴浜?");
scanf("%s",new_node->name);
printf(" 鐢佃瘽:",tmp->tel);
scanf("%s",new_node->tel);
printf(" 閭:",tmp->email);
scanf("%s",new_node->email);
scanf("%s",new_node->qq);
tmp->next = new_node;
new_node->next = null;
printf(" 娣誨姞鎴愬姛錛乗n");}}
/********鍒犻櫎鑱旗郴浜?*******/
void delete_recort(link *head)
while(tmp->num != num && tmp->next != null)
if(tmp->num == num)
else
}else
}/*******鏌ョ湅鑱旗郴浜?*******/
void scan_recort(link *head)
while(tmp != null)
}/*******鎼滅儲鑱旗郴浜?*******/
void search_recort(link *head)
if(tmp->num == num)
else
}/*******淇敼鑱旗郴浜?******/
void amend_recort(link *head)
if(tmp->num == num)
printf(" 淇敼鎴愬姛錛乗n");
}else
}
鍊錶通訊錄
include include include define password 208140119 define name max 20 define gender max 10 define str max 20 define tel max 20 鍊錶結構 struct address type...
鍊錶寫的通訊錄
include include include include struct node typedef struct node node typedef struct node link void create link head void insert link head,link new nod...
利用鍊錶實現通訊錄
用鍊錶實現乙個 可以用來儲存資訊的通訊錄,每個人的資訊包括 姓名 性別 年齡 住址 程式如下 include include include define len sizeof struct student struct student void menu 目錄格式 struct student c...