#include <iostream>
using namespace std;
//#define MAX 100;
struct node{
char m_name[10];
char m_sex[10];
char m_telephone[20];
char m_QQ[20];
char m_address[20];
char m_note[20];
};
class People{
private:
struct node info[100];
int m_number;
public:
int showscreen();
void insert();
void search();
void dele();
void alter();
void display();
static int count;
};
int People::count = 0;
int People::showscreen()
{
int number = 0;;
cout<<"*+=================================================+*"<<endl;
cout<<"*| |*"<<endl;
cout<<"*| 多功能电子通讯录 |*"<<endl;
cout<<"*| |*"<<endl;
cout<<"*| |*"<<endl;
cout<<"*| 版本:1.0 |*"<<endl;
cout<<"*|-------------------------------------------------|*"<<endl;
cout<<"*| 1.添加好友信息 2.查看好友信息 |*"<<endl;
cout<<"*|-------------------------------------------------|*"<<endl;
cout<<"*| 3.删除好友信息 4.修改好友信息 |*"<<endl;
cout<<"*|-------------------------------------------------|*"<<endl;
cout<<"*| 5.显示好友信息 6.退出 |*"<<endl;
cout<<"*+=================================================+*"<<endl;
cout<<" "<<endl;
cout<<"请选择你要实现的功能:"<<endl;
cin>>number;
if(number == 1||number == 2||number ==3||number == 4||number == 5||number == 6)
{
m_number = number;
return m_number;
}
}
通讯录 c++数组版
最新推荐文章于 2022-11-13 22:31:10 发布