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

正文內(nèi)容

高級(jí)c語言程序設(shè)計(jì)電話薄管理系統(tǒng)分-預(yù)覽頁

2025-06-15 02:07 上一頁面

下一頁面
 

【正文】 。 }TELEBOOK。 Address[20]:保存聯(lián)系人地址。 printdata() 函數(shù)原型: void printdata( TELEBOOK pp) printdata()函數(shù)用于以表格顯示的形式,打印輸出單個(gè)數(shù)組元素 pp 中的記錄信息。 Add() 函數(shù)原型: int Add( TELEBOOK temp[],int n) Add()函數(shù)用于在數(shù)組 temp 中增加電話薄記錄 ,并返回?cái)?shù)組中的當(dāng)前記錄數(shù) .調(diào)用 Add(TELEBOOK temp[],int n)函數(shù) ,完成在數(shù)組 temp 中添加電話薄記錄的功能 ,在剛進(jìn)入電話薄管理系統(tǒng)時(shí) ,若默認(rèn)的數(shù)據(jù)文件為空 ,則從數(shù)組的頭部開始添加記錄 ,否則 ,將此記錄添加到數(shù)組的尾部。調(diào)用 Save( TELEBOOK temp, int n)函數(shù),完成存儲(chǔ)記錄操作,設(shè)計(jì)應(yīng)將數(shù)組中的數(shù)據(jù)寫入磁盤中的數(shù)據(jù)文件,若用戶對(duì)數(shù)據(jù)有修改后還沒有專門進(jìn)行此操作,在退出前應(yīng)提示用戶是否存盤。 char phonenum[15]。 void menu()。 void wrong()。 void save(TELEBOOK temp[],int n)。 printf(\n=====No telephone number record!\n)。 printf(modify telephone book recorder)。 /*查詢到該數(shù)組元素 ,并返回下標(biāo)值 */ if(p!=1) /*若 p!=- 1,表明已經(jīng)找到該數(shù)組元素 */ { printf(Number:%s,\n,temp[p].num)。 stringinput(temp[p].phonenum,15,input new telephone:)。 getchar()。 } else {Nofind()。 textcolor(13)。 cprintf(**********************menu*********************\n)。 cprintf( * 3 madify record 4 save record *\n )。 cprintf(***********************************************\n)。 printf(FORMAT,DATA)。 } void Disp(TELEBOOK temp[],int n) { int i。 } printf(\n\n)。 i++。 getchar()。 i++。 } int Add(TELEBOOK temp[],int n) { char ch,num[10]。 while(1) { while(1) { stringinput(num,10,input number(press39。 if(strcmp(num,0)==0) { return n。 } i++。ch)。Y39。 } strcpy(temp[n].num,num)。 saveflag=1。 do { printf(notice)。 strcpy(t,n)。 /*以只寫方式打開文件文本文件 */ if(fp==NULL) /*打開文件失敗 */ { printf(\n=====open file error!\n)。in。 } } if(i0) { getchar()。 } else { clrscr()。 /*關(guān)閉此文件 */ } void main() { TELEBOOK tele[N]。/*保存 (y,Y,n,N)*/ int count=0。 } while(!feof(fp)) { if(fread(amp。 getchar()。 printf(\n Please Enter your choice(0~4):)。 printf(\n==Whether save the modified record to file?(y\n):)。 if(ch==39。) save(tele,count)。} switch(select) { case 1:count=Add(tele,count)。break。break。/*按鍵有誤,必須為數(shù)值 0~4*/ } } } 17 五、結(jié)果及討論 : (一) 主菜單 界面 : 用戶 進(jìn) 入電話簿管理系統(tǒng)時(shí),通過主函數(shù)調(diào)用菜單函數(shù),屏幕上顯示主菜單界面,指示用戶按對(duì)應(yīng)的數(shù)字進(jìn)行選擇,完成相應(yīng)的任務(wù)。通過主菜單中給出的提示輸入相應(yīng)的數(shù)字通過主函數(shù)來調(diào)用 Modify ()函數(shù)。我們首先對(duì)電話薄管理系統(tǒng)的公共部分進(jìn)行了準(zhǔn)確錄入,然后大家一起進(jìn)行了分析研究,了解了電話薄管理系統(tǒng)的運(yùn)行過程,使大家對(duì)設(shè)計(jì)對(duì)象有了一定的了解。在編寫過程中遇到了兩個(gè)比較深刻的問題,一個(gè)是我們發(fā)現(xiàn)排序完之后直接跳轉(zhuǎn)回 MENU 界面,使我們很困惑,之后在老師的幫助之下,我們通過加入 getchar()來解決了問題;另一個(gè)是我們總是遇到執(zhí)行完兩部分過程之后內(nèi)容重疊的問題,最后在老師的指導(dǎo)之下,我們將 system(“cls”)修改成 clrscr 來進(jìn)行清屏修改。 六、指導(dǎo)教師的意見: 簽名: 年 月 日 成績?cè)u(píng)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1