谁能帮我编个程序要链表式

来源:百度知道 编辑:UC知道 时间:2024/09/28 03:27:15
题目: 简易电子通讯录面向对象的程序设计
要求: 1,基本记录信息 联系人:姓名,性别,住址,身份证号,电话,邮箱地址
2,联系人的输入,修改,删除,插入,全部联系人的屏幕显示分页输出。
3,全姓名和部分姓名为关键字的联系人查找
4,通讯录的显示及打印输出。

程序比较长 我明早发到你的邮箱 请注意查收

#include <iostream>
#include <string>
#include <iomanip>

using namespace std;

class Contacts
{
public:
string getName() const;
string getSex() const;
string getAddress() const;
string getID() const;
string getTelnumber() const;
string getE_mail() const;

void setName(const string& s) { name = s; }
void setSex(const string& s) { sex = s; }
void setAddress(const string& s) { address = s; }
void setID(const string& s) { ID = s; }
void setTelnumber(const string& s) { telnumber =s; }
void setE_mail(const string& s) { E_mail= s; }
private:
string name;
string sex;
string address;
string ID;
string telnumber;
string E_mail;
};
string Contacts::getAddress() const
{
return address;
}

string Contacts::getE_mail() const
{
return address;