void delrecord()
{
ifstream da("Result.txt", ios_base::in);string str; bool flag = true;
ofstream data("return.txt", ios_base::out);
char a[20];
if (!da)
{
cout<<"找不到文件!!!!"<
}
cout<<"请输入你要删除人的姓名"<
while ( da>>TelInfo.name)
{
getline(da, str);
if (strcmp(TelInfo.name,a)==0)
{
cout <
break;
}
data<
if(flag)cout<<"没有该人"<
{
while (getline(da, str))
{
data<
da.close();
data.close();
ifstream in("return.txt", ios::in);
ofstream out("Result.txt", ios::out);
if (!out || !in)
{
cout<
}
while (getline(in, str))
{
out<
out.close();
in.close();
cout <