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

正文內(nèi)容

word版可編輯-c手機通訊錄課程設計精心整理doc(編輯修改稿)

2025-08-11 11:42 本頁面
 

【文章內(nèi)容簡介】 u(){ cout*************************************endl。 cout* 您確定要刪除該記錄嗎? *endl。 cout* *endl。 cout* *endl。 cout*************************************endl。} template class DataTypevoid TelebookDataType ::sort()// 排序{ Node DataType*p=firstnext。 Node DataType*q=pnext。//q為p的下一個節(jié)點 Node DataType*end=NULL。 while(firstnext!=end) { p=firstnext。 q=pnext。 while(pnext!=end) { if(strcmp((pdata).name,(qdata).name)0) { DataType temp。 temp=pdata。 pdata=qdata。 qdata=temp。 } p=q。 q=qnext。 } end=p。//end為每次排序后的尾節(jié)點 }} template class DataTypevoid TelebookDataType ::set()//修改記錄{ Node DataType*p = firstnext。 if(p==NULL) { cout通訊錄為空!endl。 return 。 } int t。 bool flag=true。 char na[10],addr[20]。 string ph,ma。 char nam[10]。 cout請輸入姓名:。 cinnam。 while(p!=NULL) { if(strcmp((pdata).name,nam)==0) { set_menu()。 while(flag) { cout請選擇您的操作(04):。 if(cint){}//檢驗異常 else { cout輸入錯誤!endl。 ()。 //清空流 ()。 //清除流錯誤標記 continue。 } switch(t) { case 1: cout請輸入修改后的姓名:。 cinna。 strcpy((pdata).name,na)。 break。 case 2: cout請輸入修改后的地址:。 cinaddr。 strcpy((pdata).address,addr)。 break。 case 3: cout請輸入修改后的手機號:。 cinph。 (pdata).phone=ph。 break。 case 4: cout請輸入修改后的郵箱:。 cinma。 (pdata).mail=ma。 break。 case 0: flag=false。 cout修改成功!endl。 sort()。//修改成功后要排序 return。 default: cout輸入錯誤!。 break。 } } } else p=pnext。 } if(p==NULL) cout要修改的聯(lián)系人不存在endl。}template class DataTypevoid TelebookDataType ::lenth()//查看記錄的個數(shù){ Node DataType*p = first。 int count=0。 while(pnext!=NULL) { count++。 p=pnext。 } if(count==0) cout通訊錄為空!endl。 else cout一共有count個聯(lián)系人!endl。}template class DataTypevoid TelebookDataType ::add()//按姓名增加記錄{ Node DataType*s = new NodeDataType。 Node DataType*p = firstnext。 Node DataType*q=first。//p指向q的前一個對象 DataType a。 cout請輸入姓名:。 cin。 cout請輸入地址:。 cin。 cout請輸入手機號:。 cin。 cout請輸入郵箱:。 cin。 if(p==NULL) { sdata=a。 firstnext=s。 snext=NULL。 cout添加成功!endl。 return。 } while(p!=NULL) { if(strcmp((pdata).name,)0) { q=p。 p=pnext。 } else { sdata=a。 snext=p。 qnext=s。 cout添加成功!endl。 return。 } }
點擊復制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1