[计算机]c通信录管理系统实验设计报告内容摘要:

请输入想要查询的电话号码: endl。 string phonenumber。 cinphonenumber。 for( i=0。 i=n。 i++) if(con[i].phonenumber==phonenumber) { cout联系人姓名 性别 年龄 电话号码 号码 生日 地址 邮政编码 电子邮箱 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对应该电话号码的联系人不存在。 endl。 cout选择 1 键返回上一步;输入其他内容后按 ENTER 键返回主菜单; endl。 cinnumber。 if(number==1) goto loop1。 else break。 } break。 } case 3://按 号码查找 { loop2: cout请输入想要查询的 号码: endl。 string qqnumber。 cinqqnumber。 for( i=0。 i=n。 i++) if(con[i].qqnumber==qqnumber) { cout联系人姓名 性别 年龄 电话号码 号码 生日 地址 邮政编码 电子邮箱 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].qqnumber!=qqnumber) { cout对应该 号码的联系人不存在。 endl。 cout选择 1 键返回上一步;输入其他内容后按 ENTER 键返回主菜单; endl。 cinnumber。 if(number==1) goto loop2。 else break。 } break。 } } } void contacts::revise()//修改联系人 { cout修改联系人: endl。 string name。 int number,number2。 string sex。 string age。 string phonenumber。 string qqnumber。 string birthday。 string address。 string postalcode。 string。 loop: cout请输入你想修改的联系人的姓名: endl。 cinname。 for(int i=0。 i=n。 i++) if(con[i].name==name) { cout联系人姓名 性别 年龄 电话号码 号码 生日 地址 邮政编码 电子邮箱 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。 cout请输入你要修改哪一项: endl。 cout姓名 性别 年龄 电话号码 号码 生日 地址 邮政编码 电子邮箱 endl。 cinnumber。 switch(number) { case 1:cout请输入新的姓名: endl。 cinname。 con[i].name=name。 cout修改完成。 endl。 break。 case 2:cout请输入新的性别: endl。 cinsex。 con[i].sex=sex。 cout修改完成。 endl。 break。 case 3:cout请输入新的年龄: endl。 cinage。 con[i].age=age。 cout修改完成。 endl。 break。 case 4:cout请输入新的电 话号码: endl。 cinphonenumber。 con[i].phonenumber=phonenu。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。