概述
系统中需要实现的功能如下:
✿ 添加联系人:向通讯录中添加新人,信息包括(姓名、性别、年龄、联系电话、家庭住址)最多记录1000人
✿ 显示联系人:显示通讯录中所有的联系人信息
✿ 删除联系人:按照姓名进行删除指定联系人
✿ 查找联系人:按照姓名查看指定联系人信息
✿ 修改联系人:按照姓名重新修改指定联系人
✿ 清空联系人:清空通讯录中所有信息
✿ 退出通讯录:退出当前使用的通讯录
步骤
新建结构体:
contact.h
![](https://upload-images.jianshu.io/upload_images/24175598-6638f62905366c15.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
定义:
contact.cpp
![](https://upload-images.jianshu.io/upload_images/24175598-4f04dd63e5fd44f7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
ContactManager.h
![](https://upload-images.jianshu.io/upload_images/24175598-ea3443ed9caac557.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
实现管理者
实现菜单功能:
![](https://upload-images.jianshu.io/upload_images/24175598-d03e54baedf15550.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
实现退出功能:
![](https://upload-images.jianshu.io/upload_images/24175598-29d6651f5376ee00.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
新增联系人:
![](https://upload-images.jianshu.io/upload_images/24175598-d2434e41df6e3914.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
展示联系人列表:
![](https://upload-images.jianshu.io/upload_images/24175598-c83bb6dcfd8d3fa8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
删除联系人:
![](https://upload-images.jianshu.io/upload_images/24175598-b2f33d2105853944.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
查找联系人:
![](https://upload-images.jianshu.io/upload_images/24175598-3f47e3ea7e61dab5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
更新联系人:
![](https://upload-images.jianshu.io/upload_images/24175598-a28cfe83a93b9343.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
清空通讯录:
![](https://upload-images.jianshu.io/upload_images/24175598-ebbef05f9f1b87c0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
运行截图:
那么整体的项目到这里就算完成了。
如果你能看完这篇文章,然后自己写一个类似的管理系统,那么小编就很开心啦!
写不出的话也不要担心,敲代码是一个循环渐进的过程,你可以到我这里拿一份源码,然后自己慢慢琢磨,相信最后也一定会写出来的!
![](https://upload-images.jianshu.io/upload_images/24175598-0089bf2b8faa3e3d.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
不管你是转行也好,初学也罢,进阶也可
涉及到:C语言、C++、windows编程、网络编程、QT界面开发、Linux编程、游戏编程、黑客等等......
一个活跃、高格调、高层次的程序员编程学习殿堂;编程入门只是顺带,思维的提高才有价值!