#include <fstream>
#include<iostream>
#include <string>
using namespace std;
#include <iomanip>
#include<stdlib.h>
#include <conio.h>
//姓名、住址、邮编、电话号码、电子邮箱等
typedef struct Info{
string name;
string address;
string poicecode;
string telephone;
string email;
}TeleType;
struct List{
TeleType data;
List *pre,*next;
};
struct Tongxunlu{
List *L;
long length;//当前的个数;
};
istream& operator>>(istream &input, Info & person){
string str="over";
input>>person.name;
if(person.name ==str) return input;
else{
input>>person.address >>person.poicecode >>person.telephone >>person.email ;
return input;}
}
ostream& operator<<(ostream &out,Info &person){
out<<setw(10)<<person.name <<setw(20)<<person.address <<setw(10)<<person.poicecode
<<setw(15)<<person.telephone <<setw(20)<<person.email <<endl;
return out;
}
void Read_File(Tongxunlu &T);
void Enter_system(Tongxunlu &T);
void menu(){
cout<<setw(65)<<"------------------通讯录系统-----------------"<<endl;
cout<<setw(65)<<"*-----------1.输入信息 --------------------* "<<endl;
cout<<setw(65)<<"*-----------2.显示信息 --------------------* "<<endl;
cout<<setw(65)<<"*-----------3.查找以姓名作为关键字 --------* "<<endl;
cout<<setw(65)<<"*-----------4.删除信息 --------------------* "<<endl;