You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.4 KiB

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