/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Brain.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/06/24 11:24:53 by narnaud #+# #+# */ /* Updated: 2022/07/19 14:16:32 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "Brain.hpp" Brain::Brain (void) { cout << "Brain default constructor called " << endl; } Brain::Brain (Brain const & src) { for (int i = 0; i < 100; i++) _idea[i] = src._idea[i]; cout << "Brain copy constructor called" << endl; } Brain & Brain::operator= (Brain const & src) { cout << "Brain assignment operator called" << endl; for (int i = 0; i < 100; i++) _idea[i] = src._idea[i]; return (*this); } Brain::~Brain (void) { cout << "Brain default destructor called" << endl; }