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

正文內(nèi)容

程序設(shè)計(jì)基礎(chǔ)課程設(shè)計(jì)--23根火柴游戲、通訊錄管理(編輯修改稿)

2025-07-11 07:27 本頁面
 

【文章內(nèi)容簡介】 ex。//聯(lián)系人性別 string age。//聯(lián)系人年齡 string phonenumber。//聯(lián)系人電話號(hào)碼 string qqnumber。//聯(lián)系人 號(hào)碼 string birthday。//聯(lián)系人生日 string address。//聯(lián)系人地址 string postalcode。//聯(lián)系人郵政編碼 string 。//聯(lián)系人電子郵箱 }con[100]。//定義一個(gè)類 contacts 程序設(shè)計(jì)基 礎(chǔ)課程設(shè)計(jì) 合肥工業(yè)大學(xué)計(jì)算機(jī)與信息學(xué)院 11 void contacts::add()//添加聯(lián)系人 { loop:cout新建聯(lián)系人: endl。 cout聯(lián)系人姓名 :。 cincon[n].name。 cout性別 :。 cincon[n].sex。 cout年齡 :。 cincon[n].age。 cout電話號(hào)碼 :。 cincon[n].phonenumber。 cout 號(hào)碼 :。 cincon[n].qqnumber。 cout生日 :。 cincon[n].birthday。 cout地址 :。 cincon[n].address。 cout郵政編碼 :。 cincon[n].postalcode。 cout電子郵箱 :。 cincon[n].。 coutendl。 cout添加成功! endl。 n++。 cout是否繼續(xù)添加? endl。 cout選擇 1 鍵返回上一步;輸入其他內(nèi)容后按 ENTER 鍵返回主菜單 endl。 int number。 cinnumber。 if(number==1) goto loop。 else。 } void contacts::display()//顯示聯(lián)系人 { cout顯示聯(lián)系人: endl。 cout聯(lián)系人姓名 性別 年齡 電話號(hào)碼 號(hào)碼 生日 地址 郵政編碼 電子郵箱 endl。 for(int i=0。in。i++){ coutcon[i].name con[i].sex con[i].age con[i].phonenumber con[i].qqnumber con[i].birthday con[i].address con[i].postalcode con[i].endl。 } 程序設(shè)計(jì)基 礎(chǔ)課程設(shè)計(jì) 合肥工業(yè)大學(xué)計(jì)算機(jī)與信息學(xué)院 12 } void contacts::search()//查找聯(lián)系人 { cout查找聯(lián)系人 : endl。 cout1 按姓名查找 endl。 cout2 按電話號(hào)碼查找 endl。 cout3 按 號(hào)碼查找 endl。 cout請(qǐng)選擇你需要的查詢方式 : 。 int select,number,i。 cinselect。 switch(select){ case 1://按姓名查找 { loop: cout請(qǐng)輸入想要查詢的姓名: endl。 string name。 cinname。 for( i=0。i=n。i++) if(con[i].name==name){ cout聯(lián)系人姓名 性別 年齡 電話號(hào)碼 號(hào)碼 生日 地址 郵政編碼 電子郵箱 endl con[i].name con[i].sex con[i].age con[i].phonenumber con[i].qqnumber con[i].birthday con[i].address con[i].postalcode con[i].endl。 break。 } if(con[i].name!=name){ cout該姓名不存在。 endl。 cout選擇 1 鍵返回上一步;輸入其他內(nèi)容后按 ENTER 鍵返回主菜單;endl。 cinnumber。 if(number==1) goto loop。 else break。 } break。 } case 2://按電話號(hào)碼查找 { loop1: 程序設(shè)計(jì)基 礎(chǔ)課程設(shè)計(jì) 合肥工業(yè)大學(xué)計(jì)算機(jī)與信息學(xué)院 13 cout請(qǐng)輸入想要查詢的電話號(hào)碼: endl。 string phonenumber。 cinphonenumber。 for( i=0。i=n。i++) if(con[i].phonenumber==phonenumber){ cout聯(lián)系人姓名 性別 年齡 電話號(hào)碼 號(hào)碼 生日 地址 郵政編碼 電子郵箱 endl con[i].name con[i].sex con[i].age[3] con[i].phonenumber con[i].qqnumber con[i].birthday con[i].address con[i].postalcode con[i].endl。 break。 } if(con[i].phonenumber!=phonenumber){ cout對(duì)應(yīng)該電話號(hào)碼的聯(lián)系人不存在。 endl。 cout選擇 1 鍵返回上一步;輸入其他內(nèi)容后按 ENTER 鍵返回主菜單;endl。 cinnumber。 if(number==1) goto loop1。 else break。 } break。 } case 3://按 號(hào)碼查找 { loop2: cout請(qǐng)輸入想要查詢的 號(hào)碼: endl。 string qqnumber。 cinqqnumber。
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1