c课程设计总结报告_通讯录管理系统内容摘要:

※ endl \t\t※ 3. 显示所有联系人 . 6. 关闭通迅录 . ※ endl \t\t※ ※ endl \t\t★★★★★★★★★★★★★★★★★★★★★★★★★★ endl endl \t\t\t 选择 :。 int choose。 cinchoose。 fflush(stdin)。 return choose。 } void book::add_person() { cout 根据下面提示输入新联系人信息 endl姓名 :。 cin name。 fflush(stdin)。 cout 电话 :。 cin number。 fflush(stdin)。 cout qq :。 cin qq。 fflush(stdin)。 cout 邮编 :。 cin post。 fflush(stdin)。 cout 地址 :。 cin address。 fflush(stdin)。 save_new()。 cout 新联系人信息已经保存好 !!!!! endl。 system(pause)。 } void book::del_person() { ofstream outData(, ios::out)。 ifstream inData(, ios::in)。 if (!outData || !inData) { cout对不起 !!!!找不到文件 !!!! endl。 system(pause)。 return。 } string sign。 cout 你要删除输入姓名或电话号 :。 cin sign。 string str1。 bool flag = true。 string str。 while (inData name number) { getline(inData, str)。 if ((sign==name) || (sign==number)) { cout 你想删除的联系人 : endl。 cout str1 endl。 cout setiosflags(ios::left) setw(17) name number str endl。 flag = false。 break。 } outData setiosflags(ios::left) setw(17) name number str endl。 } if (flag) { cout 对不起 !!!联系人中没你找的人 !!!! endl。 } else { while (getline(inData, str)) { outData str endl。 } ()。 ()。 ofstream out(, ios::out)。 ifstream in(, ios::in)。 if (!out || !in) { cout 对不起不能打开文件 !!! endl。 system(pause)。 return。 } while (getline(in, str)) { out str endl。 } ()。 ()。 cout这个人的信息已经从你的通迅录中删除 !!! endl。 } system(pause)。 } void book::show_all() { ifstream inData(,ios::in)。 if (!inData) { cout 对不起 !!!!没有找到文件 !!!!! endl。 system(pause)。 return。 } bool flag = true。 string reco。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。