freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

通訊錄管理系統(tǒng)_數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)(編輯修改稿)

2024-10-04 12:27 本頁面
 

【文章內(nèi)容簡介】 。 char pp。 printf(==================\n)。 printf( a. 按編號查詢 \n)。 printf( b. 按姓名查詢 \n)。 printf(==================\n)。 printf( 請 選 擇: )。 p=headnext。 scanf(%s,amp。pp)。 if (pp==39。a39。||pp==39。A39。) { printf(請輸入要查找者的編號: )。 scanf(%s,num)。 while (pamp。amp。strcmp(p,num)!=0) p=pnext。 11 if ((p==NULL)) p=NULL。 /*沒有查到要查找的通訊信息 */ } else if (pp==39。b39。||pp==39。B39。) { printf( 請輸入要查找者的姓名: )。 scanf(%s,name)。 while(pamp。amp。strcmp(p,name)!=0) p=pnext。 } return p。 } /********通訊錄鏈表上的結(jié)點(diǎn)刪除 *****************/ void DelNode(LinkList head) { char cho。 ListNode *p,*q。 p=ListFind(head)。 /*調(diào)用查找函數(shù) */ if (p==NULL) { printf(沒有查到要?jiǎng)h除的通訊者 !\n)。 return。 } else if(p!=NULL) { printf(真的要?jiǎng)h除該結(jié)點(diǎn)嗎?( y/n) )。 scanf(%s,amp。cho)。 if (cho==39。y39。||cho==39。Y39。) { q=head。 while ((q!=NULL)amp。amp。(qnext!=p)) q=qnext。 qnext=pnext。 /*刪除結(jié)點(diǎn) */ free(p)。 /*釋放被刪結(jié)點(diǎn)空間 */ printf(刪除成功! \n)。 } } } /********通訊錄鏈表的輸出函數(shù) **********/ void PrintList(LinkList head) { ListNode *p。 12 p=headnext。 printf(編號 姓 名 性別 聯(lián)系電話 地址 \n)。 printf(\n)。 while (p!=NULL) { printf(%s,%s,%s,%s,%s\n,p,p,p,p,p)。 printf(\n)。 p=pnext。 /*后移一個(gè)結(jié)點(diǎn) */ } } void main() { int choice,j=1。 while(j) { printf(\n\n\n\n\n)。 printf(\t\t\t\t通 信 錄 鏈 表 \n)。 printf(\n\t\t\t******************************)。 printf(\n\t\t\t* 1.通訊錄鏈表的建立 *)。 printf(\n\t\t\t* 2.通訊者結(jié)點(diǎn)的插入 *)。 printf(\n\t\t\t* 3.通訊者結(jié)點(diǎn)的查詢 *)。 printf(\n\t\t\t* 4.通訊者結(jié)點(diǎn)的刪除 *)。 printf(\n\t\t\t* 5.通訊錄鏈表的輸出 *)。 printf(\n\t\t\t* 0.退出通訊錄管理系統(tǒng) *)。 printf(\n\t\t\t******************************)。 printf(\n\t\t\t請選擇菜單號 (05):)。 scanf(%d,amp。choice)。 getchar()。 switch(choice) { case 1: { printf(**********************************\n)。 printf(* 通 訊 錄 鏈 表 的 建 立 *\n)。 printf(**********************************\n)。 head=CreateList( )。 flag1=1。 system(cls)。 break。 } 13 case 2: { if(flag1!=1) {printf(請先建立表 !)。 getchar()。 system(cls)。} else { printf(**********************************\n)。 printf(* 通 訊 者 信 息 的 添 加 *\n)。 printf(**********************************\n)。 printf(編號 姓名 性別 電話 地址 \n)。 printf(************************************* \n)。 p=(ListNode *)malloc(sizeof(ListNode))。 /*申請新結(jié)點(diǎn) */ printf(\n添加的編號 :\n)。 scanf(%s,p)。 printf(\n添加的姓名 :\n)。 scanf(%s,p)。 printf(\n性別 :\n)。 scanf(%s,p)。 printf(\n電話 :\n)。 scanf(%s,p)。 printf(\n地址 :\n)。 scanf(%s,p)。 InsertNode(head,p)。 system(cls)。} break。 } case 3: { if(flag1!=1) { printf(請先建立表 !)。 getchar()。 system(cls)。 } else { printf(***********************************\n)。 printf(* 通 訊 錄 信 息 的 查 詢 *\n)。 printf(***********************************\n)。 p=ListFind(head)。 if (p!=NULL) { 14 printf(編號 姓 名 性別 聯(lián)系電話 地址 \n)。 printf(\n)。 printf(%s,%s,%s,%s,%s\n,p,p,p,p,p)。 printf(\n)。 } else printf(沒有查到要查詢的通訊者! \n)。 } break。 } case 4: { if(flag1!=1) { printf(請先建立表 !)。 getchar()。 system(cls)。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1