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.
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* 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 */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include "Contact.hpp"
|
|
|
|
#include <cstdlib>
|
|
|
|
#define CONTACTS_AMOUNT 8
|
|
|
|
|
|
|
|
class PhoneBook
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PhoneBook();
|
|
|
|
void run();
|
|
|
|
private:
|
|
|
|
Contact _contacts[CONTACTS_AMOUNT];
|
|
|
|
int _id;
|
|
|
|
void add();
|
|
|
|
void search();
|
|
|
|
};
|