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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)報(bào)告單位員工通訊錄管理系統(tǒng)(編輯修改稿)

2025-01-20 23:02 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 void search(LinkList list) 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 23 { ListNode *aa。 aa=listnext。 cout***********按員工編號(hào)查詢,請(qǐng)輸入員工編號(hào) :。 char bh[20]。 cinbh。 do{ if(!(strcmp(bh,aa))){ cout☆☆☆☆ ******單位員工通訊錄管理系統(tǒng) *****☆ ☆☆☆ endl。 cout** 手機(jī)號(hào)碼: aaendl。 cout** 員工郵箱: aaendl。 cout** 員工姓名: aa endl。 cout** 員工編號(hào): aa endl。 cout** 辦公室電話號(hào)碼: aaendl。 cout**************************************************endl。 return。 }}while(aanext!=NULL,aa=aanext)。 if(!aa) cout你所查找的員工編號(hào)不存在 !endl。 } void Insert(LinkList list) { ListNode *w。 w=listnext。 while(wnext!=NULL) { w=wnext。 } ListNode *u=new ListNode。 unext=NULL。 cout手機(jī)號(hào)碼: 。cinu。 cout員工郵箱: 。cinu。 cout員工姓名: 。cinu。 cout員工編號(hào): 。cinu。 cout辦公室電話號(hào)碼: 。cinu。 wnext=u。w=wnext。 } void Delete(LinkList list) { ListNode *cz1。 ListNode *cz2。 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 24 ListNode *cz3。 cz1=list。 cz2=list。 int s=0。 char chax[20]。 cout請(qǐng)輸入要?jiǎng)h除的員工編號(hào): 。 cinchax。 while((strcmp(chax,cz1))) { s++。 cz1=cz1next。 } for(int j=0。js1。j++) { cz2=cz2next。 } cz3=cz2next。 cz2next=cz3next。 } void Modify(LinkList list) { ListNode *xiug。 ListNode *zans。 zans=listnextnext。 cout請(qǐng)輸入需要修改的員工的員工編號(hào): 。 char bh[20]。 cinbh。 for(zans。zans!=NULL。zans=zansnext) { if(!(strcmp(bh,zans))) { xiug=new ListNode。 cout☆☆☆☆☆ ***單位員工通訊錄管理系統(tǒng) ***☆☆ ☆☆☆☆ endl。 cout|****** 碼: ******|endl。 cout|****** : ******|endl。 cout|****** : ******|endl。 cout|****** 4. 辦 公 室 電 話 號(hào) 碼 : ******|endl。 cout***************************************************endl。 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 25 int we。 cout請(qǐng)輸入要修改的項(xiàng): 。 cinwe。 switch (we) { case 1: cout: 。 cinxiug。strcpy(zans,xiug)。break。 case 2: cout: 。 cinxiug。strcpy(zans,xiug)。break。 case 3: cout: 。 cinxiug。strcpy(zans,xiug)。break。 case 4: cout: 。 cinxiug。strcpy(zans,xiug)。break。 } return。 } }} void jiemian(LinkList list) { while(1) {system(color 3A)。 int xuhao=0。 cout☆☆☆☆ *****單位員工通訊錄管理系統(tǒng) *****☆☆☆☆ endl。 cout|***********************************************|endl。 cout ; endl。 cout ; endl。 cout ; endl。 cout ; endl。 cout ; endl。 cout ; endl。 cout|***********************************************|endl。 cout請(qǐng)選擇操作 (16):endl。 cinxuhao。 switch(xuhao) { case 1: search(list)。system(pause)。system(cls)。break。 case 2: Insert(list)。system(pause)。system(cls)。break。 case 3: Delete(list)。system(pause)。system(cls)。break。 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 26 case 4: Modify(list)。system(pause)。system(cls)。break。 case 5: Output(list)。system(pause)。system(cls)。break。 case 6: end()。 exit(0)。break。 }}} int main() { Initlist(list)。 jiemian(list)。 return 0。 } 停車場(chǎng)管理(棧和隊(duì)列的應(yīng)用) include include define MAX 3 //停車場(chǎng)最大容量為 3 輛,便于觀察 define price //定義時(shí)間結(jié)構(gòu)體 typedef struct time { int hour。 int min。 }Time。 //定義車輛信息結(jié)構(gòu)體 typedef struct node { char num[10]。 Time reach。 Time leave。 }CarNode。 typedef struct NODE { CarNode *stack[MAX+1]。 int top。 }SeqStackCar。//模擬停車場(chǎng) typedef struct car { CarNode *data。 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 27 struct car *next。 }QueueNode。 typedef struct Node { QueueNode *head。 QueueNode *rear。 }LinkQueueCar。//模擬便道 void InitStack(SeqStackCar *s) { int i。 stop=0。 for(i=0。i=MAX。i++) sstack[stop]=NULL。 } //隊(duì)列的初始化 int InitQueue(LinkQueueCar *Q) { Qhead=new QueueNode。 if(Qhead!=NULL) { Qheadnext=NULL。 Qrear=Qhead。 return(1)。 } else return(1)。} //車輛收費(fèi) void PRINT(CarNode *p,int room) { int A1,A2,B1,B2。 cout請(qǐng)輸入車輛離開的時(shí)間 :(小時(shí) :分鐘 )。 cinpp。 while(p0||p23) { cout您的輸入有誤 !endl。 cout請(qǐng)重新輸入離開時(shí)間的 39。時(shí) 39。(023):。 cinp。 } 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 28 if(p0||p59) { cout您的輸入有誤 !。 cout請(qǐng)重新輸入離開時(shí)間的 39。分 39。(059):。 cinp。} cout離開車輛的車牌號(hào)為 :。 cout該車到達(dá)時(shí)間為 : coutp:pendl。 cout該車離開時(shí)間為 : cout p:pendl。 A1=p。 A2=p。 B1=p。 B2=p。 cout應(yīng)交費(fèi)用為 :((B1A1)*60+(B2A2))*price元 !。 delete p。 } //車輛的到達(dá)登記 int Arrival(SeqStackCar *Enter,LinkQueueCar *W) { CarNode *p。 QueueNode *t。 p=new CarNode。 cout請(qǐng)輸入車牌號(hào) :。 cinpnum。 if(EntertopMAX)//車輛未滿,車進(jìn)車場(chǎng) { Entertop++。 cout車輛在車場(chǎng)第 Entertop位置 。 cout車輛到達(dá)時(shí)間 :。 cinpp。 while(p0||p23) //控制時(shí)間格式正確 { cout您的輸入有誤 !。 cout請(qǐng)重新輸入到達(dá)時(shí)間的 39。時(shí) 39。(023):。 cinp。 } 班級(jí):計(jì)科 112 學(xué)號(hào): 202100814203 姓名:馮貴陽 29 while(p0||p59) //控制分鐘輸入正確 { cout您的輸入有誤 !。 cout請(qǐng)重新輸入到達(dá)時(shí)間的 39。分 39。(059):。 cinp。 } Enterstack[Entertop]=p。 cout=====★★★ =====祝賀您登記成功 !=====★★★ ===\n。 system(pause)。 system(
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1