「✨」 feat(Phonebook): normally finished 👍
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/26 00:41:10 by adjoly #+# #+# */
|
||||
/* Updated: 2024/10/31 12:37:10 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/11/03 18:19:21 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -14,9 +14,20 @@
|
||||
|
||||
#include "Contact.hpp"
|
||||
|
||||
#define uint8_t unsigned char
|
||||
|
||||
class PhoneBook {
|
||||
private:
|
||||
Contact _contact[8];
|
||||
public:
|
||||
uint8_t _index;
|
||||
|
||||
void _add(void);
|
||||
void _search(void);
|
||||
|
||||
/* Search internal function */
|
||||
void __printContacts(void);
|
||||
std::string __formatstr(std::string str);
|
||||
void __printContact(uint8_t index);
|
||||
public:
|
||||
PhoneBook(void);
|
||||
};
|
||||
|
Reference in New Issue
Block a user