1
0

found solution!

This commit is contained in:
Holger Boerchers 2018-11-20 20:06:06 +01:00
parent 412344a635
commit 3c4e1056e3

View File

@ -162,17 +162,17 @@ void search_employee()
string first_name;
cout << "Bitte einen Vornamen eingeben: ";
cin >> first_name;
const auto found = employee();
auto found = employee();
for (auto e : employees)
{
if (e.first_name._Equal(first_name) && e.name._Equal(name))
{
found = const employee(e);
found = employee(e);
break;
}
}
modify_employee(found);
employees.remove(const found);
employees.remove(found);
}
void modify_employee(employee employee)