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

正文內(nèi)容

c通信錄管理系統(tǒng)(課程設(shè)計)(doc畢設(shè)論文)(編輯修改稿)

2024-07-25 07:53 本頁面
 

【文章內(nèi)容簡介】 oid showall()。//顯示所有信息 void savenew()。//保存通訊錄文件 void show()。//顯示查詢的類型 void showA()。//顯示類型A void showB()。//顯示類型B void showC()。//顯示類型Cprivate: string name。//姓名 string number。//電話 string type。//類型 string 。//電子信箱}。struct record{ book object。//雙向鏈表中的數(shù)據(jù)域是是一個記錄類 record *prior。//指向前軀 record *next。//指向后繼}。book::book()//構(gòu)造函數(shù){ name=\0。 number=\0。 type=\0。 =\0。 }char book::intface()//通信錄管理界面{ system(cls)。 coutendl。 cout\t\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@endl \t\t\t 通 訊 錄 管 理 系 統(tǒng) endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t endl \t\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@endl \t\t\t 選擇:。 char choose。 cinchoose。 fflush(stdin)。 return choose。//返回choose}void book::addperson()//添加新聯(lián)系人{ coutendl根據(jù)下面提示輸入新聯(lián)系人endlendl 姓名:。 cinname。 fflush(stdin)。 cout電話:。 cinnumber。 fflush(stdin)。 cout類型(A:辦公類B:個人類C:商務(wù)類):。 cintype。 fflush(stdin)。 cout郵箱:。 cin。 fflush(stdin)。 savenew()。//保存進文件 coutendlendl新聯(lián)系人以保存好?。?!endlendl。 system(pause)。}void book::delperson()//刪除文件里的聯(lián)系人信息{ ofstream outfile(,ios::out)。//以寫入打開文件 ifstream infile(,ios::in)。//以讀出打開文件 if(!outfile||!infile) { coutendl文件不存在?。。ndl。 system(pause)。 return 。 } string sign。 coutendl你要刪除的姓名或電話號:。 cinsign。 bool flag=true。 string str。 while(infilenamenumber)//讀入信息記錄循環(huán) { getline(infile,str)。//讀入信息 if((sign==name)||(sign==number)) { coutendl你想刪除的聯(lián)系人:endlendl。 coutsetiosflags(ios::left)setw(17)name numberstrendl。 flag=false。 break。 } outfilesetiosflags(ios::left)setw(17)name numberstrendl。 } if(flag) { coutendl對不起!沒有你要找的人?。?!endlendl。 } else { while(getline(infile,str)) { outfilestrendl。 } ()。 ()。 ofstream out(,ios::out)。 ifstream in(,ios::in)。 if(!out||!in) { coutendl對不起不能打開文件!?。ndlendl。 system(pause)。 return 。 } while(getline(in,str)) { outstrendl。 } ()。 ()。 coutendl這個人的通訊信息已刪除?。?!endlendl。 } system(pause)。}void book::alter()//修改信息記錄{ ifstream infile(, ios::in)。 if (!infile) { cout endl 對不起不能打開文件!!!!! endl endl。 system(pause)。 return。 } string sign。 cout endl 請輸入你想要修改的聯(lián)系人的姓名或電話號碼 :。 cin sign。 fflush(stdin)。 string str1。 getline(infile, str1)。 record *H = new record。//記錄鏈表 record *p = H。 record *q = H。 bool flag = true。 while (infile p p p p) { pnext = new record。 p = pnext。 pprior = q。 qnext = p。 q = p。 } pnext = NULL。 ()。 p = H。 while (p) { if ((p==sign) || (p==sign)) { if (flag) { cout endl 你想修改你聯(lián)系人的信息如下: endl endl。 cout setiosflags(ios::left) setw(17) p setw(16) p setw(10) p setw(18) p endl。 flag = false。 } cout endl 請根據(jù)下面提示修改信息 : endl。 cout 姓名 : 。 cin p。 fflush(stdin)。 cout 電話:。 cin p。 fflush(stdin)。 cout 類型:。 cin p。 fflush(st
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1