CPP00/ex01/inc/PhoneBook.hpp
2025-03-21 14:57:55 +01:00

35 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* :::::::: */
/* PhoneBook.hpp :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/03/20 10:53:48 by whaffman #+# #+# */
/* Updated: 2025/03/21 10:55:03 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#pragma once
#include "Contact.hpp"
#include <string>
#define MAX_CONTACTS 2
class PhoneBook {
public:
PhoneBook();
void printContact(const int i) const;
void printAllContacts() const;
void searchContact() const;
void addContact();
private:
Contact _contacts[MAX_CONTACTS];
int _contactCount;
std::string truncate(std::string str) const;
};