cpp00...
This commit is contained in:
34
ex01/main.cpp
Normal file
34
ex01/main.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/09/02 21:54:41 by aortigos #+# #+# */
|
||||
/* Updated: 2025/09/06 15:49:04 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Phonebook/Phonebook.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
Phonebook ph;
|
||||
std::string str;
|
||||
|
||||
str = "";
|
||||
while (str != "EXIT")
|
||||
{
|
||||
std::cout << "Phonebook > ";
|
||||
std::getline(std::cin, str);
|
||||
|
||||
if (str == "ADD")
|
||||
ph.addContacts();
|
||||
else if (str == "SHOW")
|
||||
ph.showContacts();
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user