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