/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/04/08 17:58:31 by erey-bet #+# #+# */ /* Updated: 2023/04/20 14:47:32 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "PhoneBook.hpp" #include #include int main(void) { std::string input; PhoneBook PhoneB = PhoneBook(); while (true) { std::cout << "PhoneBook Menu: ADD, SEARCH or EXIT to ... exit" << std::endl; if (!std::getline(std::cin, input)) break; if (input.compare("ADD") == 0) PhoneB.add(); if (input.compare("SEARCH") == 0) PhoneB.search(); if (input.compare("EXIT") == 0) break; std::cout << "You entered: " << input << std::endl; } std::cout << "Exiting program..." << std::endl; return (0); }