Brain added
This commit is contained in:
23
ex01/Brain/Brain.cpp
Normal file
23
ex01/Brain/Brain.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Brain.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/10 11:22:21 by aortigos #+# #+# */
|
||||
/* Updated: 2025/11/10 11:33:52 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Brain.hpp"
|
||||
|
||||
Brain::Brain()
|
||||
{
|
||||
std::cout << "Brain has been created" << std::endl;
|
||||
}
|
||||
|
||||
Brain::~Brain()
|
||||
{
|
||||
std::cout << "Brain has been destroyed" << std::endl;
|
||||
}
|
||||
29
ex01/Brain/Brain.hpp
Normal file
29
ex01/Brain/Brain.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Brain.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/10 11:22:17 by aortigos #+# #+# */
|
||||
/* Updated: 2025/11/10 11:32:41 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef BRAIN_HPP
|
||||
|
||||
# define BRAIN_HPP
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class Brain
|
||||
{
|
||||
private:
|
||||
std::string ideas[100];
|
||||
|
||||
public:
|
||||
Brain();
|
||||
~Brain();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user