update: adding the add function

This commit is contained in:
Raphael 2024-10-14 19:15:36 +02:00
parent e1694a698d
commit ce42218b88
5 changed files with 76 additions and 19 deletions

View file

@ -6,17 +6,18 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/20 19:50:03 by rparodi #+# #+# */
/* Updated: 2024/09/20 19:50:51 by rparodi ### ########.fr */
/* Updated: 2024/10/14 18:52:45 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "phonebook.h"
#include "phonebook.hpp"
void contact::print(void) {
std::cout << "First Name:" << first_name << std::endl;
std::cout << "Last Name:" << last_name << std::endl;
std::cout << "Nickname:" << nickname << std::endl;
std::cout << "Number:" << number << std::endl;
std::cout << "Dark Secret:" << dark_secret << std::endl;
std::cout << "ID:" << id << std::endl;
}