Files
42_INT_09_piscine_cpp/d00/ex01/Contact.class.cpp

40 lines
844 B
C++

#include "Contact.class.hpp"
Contact::Contact( void ) {
return;
}
Contact::~Contact( void ) {
return;
}
void Contact::add_first( std::string str ) {
this->first.assign(str);
return;
}
void Contact::add_last( std::string str ) {
this->last.assign(str);
return;
}
void Contact::add_nick( std::string str ) {
this->nick.assign(str);
return;
}
void Contact::add_num( std::string str ) {
this->num.assign(str);
return;
}
void Contact::add_secret( std::string str ) {
this->secret.assign(str);
return;
}
void Contact::print_contact( void ) {
std::cout << "FIRST NAME : " << this->first << std::endl;
std::cout << "LAST NAME : " << this->last << std::endl;
std::cout << "NICKNAME : " << this->nick << std::endl;
std::cout << "NUMBER : " << this->num << std::endl;
std::cout << "SECRET : " << this->secret << std::endl;
return;
}