1
0

🏗️」 wip(PhoneBook): Started phonebook

This commit is contained in:
2024-10-31 13:41:59 +01:00
parent d0f2837cd4
commit 1607cd1fa6
6 changed files with 99 additions and 10 deletions

View File

@ -6,15 +6,33 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/26 00:41:12 by adjoly #+# #+# */
/* Updated: 2024/10/26 00:44:00 by adjoly ### ########.fr */
/* Updated: 2024/10/31 13:26:17 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
class Contact {
private:
std::string _name;
std::string _lastName;
std::string _nickname;
std::string _phoneNbr;
std::string _darkestSecret;
public:
// Getter
std::string getName();
std::string getLastName();
std::string getNickname();
std::string getPhoneNbr();
std::string getSecret();
// Setter
void setName(std::string newName);
void setLastName(std::string newLastName);
void setNickname(std::string newNickName);
void setPhoneNbr(std::string newPhoneNbr);
void setSecret(std::string newSecret);
};

View File

@ -6,15 +6,17 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/26 00:41:10 by adjoly #+# #+# */
/* Updated: 2024/10/26 00:43:39 by adjoly ### ########.fr */
/* Updated: 2024/10/31 12:37:10 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include "Contact.hpp"
class PhoneBook {
private:
Contact _contact[8];
public:
};