fix: ctrl + D not supported
This commit is contained in:
parent
67fbbf113b
commit
49f93acdee
@ -40,7 +40,10 @@ int main()
|
||||
if (new_contact.isValid())
|
||||
phone_book.add_contact(new_contact);
|
||||
else
|
||||
{
|
||||
std::cerr << "Contact Error !" << std::endl;
|
||||
return (1);
|
||||
}
|
||||
}
|
||||
else if (command == "SEARCH")
|
||||
{
|
||||
@ -50,6 +53,11 @@ int main()
|
||||
{
|
||||
return (0);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "Command not found" << std::endl;
|
||||
return (2);
|
||||
}
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user