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

正文內容

c課程設計報告電話簿管理系統(tǒng)-閱讀頁

2024-12-06 17:02本頁面
  

【正文】 關系:大學同學 單位: 11 舍 第 17頁 /共 22頁 《 C++程序設計》課程設計 :電話簿管理系統(tǒng) 姓名:李嬌 電話: 999889 關系:大學同學 單位: 11 舍 按任意鍵繼續(xù) *********************************** 請輸入您的選擇 (0~7):1 現(xiàn)在共有如下 8條記錄: 名字 電話 關系 單位 9 9 9 9 0 0 0 0 1 2 2 2 龔勇 629313 本人 12 舍 313 陳洲 123456 室友 12 舍 313 文際瓊 464654 大學同學 11 舍 楊貝 899746 大學同學 11 舍 李嬌 999889 大學同學 11 舍 按任意鍵繼續(xù) 在此只截取以上幾個界面以供證明本程序確實能夠 正常 運行,其他部分請用戶自行運行查看。\ 12. if(p==NULL) {coutmemory fail!endl。} \ 13. }while(0) 14. 15. 16. //申請動態(tài)內存并判別是否申請成功 17. 18. //定義記錄類 19. struct rec 20. { 21. char name[20]。 23. char relat[10]。 25. 26. }。 //對象成員 32. record *next。 34. 35. public: 36. record()。 38. static int count。 42. 43. void show(record *)。 48. 49. record *cancel(record *)。 52. 53. record *load(record *)。 56. 57. void handle_menu(record *)。operator(ostream amp。ob)。operator(istream amp。ob)。 63. 64. endif 65. 66. 67. //控制菜單函數(shù) 68. void record::handle_menu(record *top) 69. { //int x。) 71. { 72. switch(menu()) /*調用主菜單函數(shù),返回值整數(shù)作開關語句的條件 */ 73. { 74. case 0:top=set(top)。/*輸入記錄 */ 77. 78. case 1:show(top)。 /*顯示全部記錄 */ 79. 80. case 2:search(top)。 /*查找記錄 */ 81. 82. case 3:top=cancel(top)。 /*刪除記錄 */ 83. 84. case 4:modify(top)。 /*修改紀錄 */ 85. 86. case 5:save(top)。 /*保存文件 */ 87. 第 20頁 /共 22頁 《 C++程序設計》課程設計 :電話簿管理系統(tǒng) 88. case 6:top=load(top)。 /*讀文件 */ 89. 90. case 7:exit(0)。 91. 92. default:cout對不起,請輸入正確的數(shù)字! endl。 103. 104. 105. if(topcount==0) 106. { 107. cout\t 請稍候,取已有文件 ...endl。 109. } 110. 111. record *old,*star。 113. old=top。 117. } 118. cout\t 輸入數(shù)據 :endl。 120. cinM。 123. for(int i=0。i++) 124. 125. 126. { 127. ++topcount。 gets(star)。 第 21頁 /共 22頁 《 C++程序設計》課程設計 :電話簿管理系統(tǒng) 131. 132. cout\t 電話: flush。 133. cout\t 關系: flush。 134. cout\t 單位: flush。 135. coutendl。 138. oldnext=star。 140. ASK(star)。 142. 143. oldnext=NULL。 145. } 146. 147. 148. 149. //******************************** 150. //*文件讀取操作函數(shù) * 151. //******************************** 152. record *record::load(record *top) 153. { 154. ifstream in。 156. if(!in) 157. { 158. cout\t 文件不存在!請輸入數(shù)據建立新文件 endl。 160. } 161. cout\n\t 取文件? endl。 164. ()。 166. record *old。itopcount。 172. ASK(pnext)。 第 22頁 /共 22頁 《 C++程序設計》課程設計 :電話簿管理系統(tǒng) 174. p=pnext。 176. } 177. oldnext=NULL。 179. cout\t 取入 topcount條記錄。 180. return top
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1