Add files via upload

This commit is contained in:
Raphaël 2024-09-21 14:14:03 +02:00 committed by GitHub
commit e1694a698d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 346 additions and 0 deletions

22
cpp00/ex01/phonebook.cpp Normal file
View file

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* phonebook.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* 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 */
/* */
/* ************************************************************************** */
#include "phonebook.h"
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 << "ID:" << id << std::endl;
}