22 lines
364 B
C++
22 lines
364 B
C++
#include "Brain.hpp"
|
|
|
|
Brain::Brain() {
|
|
std::cout << "Brain created" << std::endl;
|
|
}
|
|
|
|
Brain::~Brain() {
|
|
std::cout << "Brain Destroyed" << std::endl;
|
|
}
|
|
|
|
Brain::Brain(const Brain &other) {
|
|
*this = other;
|
|
}
|
|
|
|
Brain& Brain::operator=(const Brain &other) {
|
|
if (this != &other) {
|
|
for (int i = 0; i < 100; i++)
|
|
this->ideas[i] = other.ideas[i];
|
|
}
|
|
return *this;
|
|
}
|