mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 05:58:04 +01:00
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* PhoneBook.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/12/23 17:55:10 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/12/23 19:52:34 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef PHONEBOOK_HPP
|
|
# define PHONEBOOK_HPP
|
|
|
|
#include "Contact.hpp"
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <iomanip>
|
|
#include <limits>
|
|
|
|
class PhoneBook
|
|
{
|
|
public:
|
|
PhoneBook();
|
|
~PhoneBook();
|
|
|
|
void AddContact();
|
|
void SearchContact() const;
|
|
|
|
private:
|
|
Contact contacts[8];
|
|
int next_index;
|
|
int total_contacts;
|
|
};
|
|
|
|
#endif |