老师布置的作业(deletePerson(List* pList)实现)
void deletePerson(List* pList)
{
Node node;
Person person;
cout << "请输入要删除的人的姓名:";
cin >> person.name;
cout << "请输入要删除的人的电话:";
cin >> person.phone;
node.data = person;
Node temp;
int index = pList->LocateElem(&node);
pList->ListDelete(index, &temp);
}