You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* PhoneBook.hpp :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/06/13 09:31:44 by narnaud #+# #+# */
|
||
|
/* Updated: 2022/06/13 15:35:30 by narnaud ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
#ifndef PHONEBOOK_HPP
|
||
|
# define PHONEBOOK_HPP
|
||
|
# include "Contact.hpp"
|
||
|
# define CONTACTS_AMOUNT 8
|
||
|
|
||
|
class PhoneBook
|
||
|
{
|
||
|
public:
|
||
|
PhoneBook();
|
||
|
int run();
|
||
|
private:
|
||
|
Contact contacts[CONTACTS_AMOUNT];
|
||
|
std::string cmd;
|
||
|
int id;
|
||
|
void add();
|
||
|
void search();
|
||
|
};
|
||
|
#endif
|