/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Brain.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos ideas[i] = other.ideas[i]; i++; } } return (*this); } void Brain::setIdea(int i, const std::string &idea) { if (i >= 0 && i < 100) ideas[i] = idea; } std::string Brain::getIdea(int i) const { if (i >= 0 && i < 100) return (this->ideas[i]); return ("Invalid idea"); }