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

正文內(nèi)容

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

2025-02-09 16:04 本頁面
 

【文章內(nèi)容簡介】 。//聯(lián)系人郵政編碼 string 。//聯(lián)系人電子郵箱}con[100]。//定義一個(gè)類contactsvoid contacts::add()//添加聯(lián)系人{(lá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)系人{(lá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。 }}void contacts::search()//查找聯(lián)系人{(lán) cout查找聯(lián)系人:endl。 cout1 按姓名查找endl。 cout2 按電話號(hào)碼查找endl。 cout3 按號(hào)碼查找endl。 cout請選擇你需要的查詢方式:。 int select,number,i。 cinselect。 switch(select){ case 1://按姓名查找 {loop: cout請輸入想要查詢的姓名: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: cout請輸入想要查詢的電話號(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對應(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請輸入想要查詢的號(hào)碼:endl。 string qqnumber。 cinqqnumber。 for( i=0。i=n。i++) if(con[i].qqnumber==qqnumber){ cout聯(lián)系人姓名 性別 年齡 電話號(hào)碼 號(hào)碼 生日 地址 郵政編碼 電子郵箱endl con[i
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1