feat: adding the ex02
This commit is contained in:
parent
921b3951d9
commit
e78b8fbe33
14 changed files with 539 additions and 0 deletions
31
cpp04/ex02/Brain.cpp
Normal file
31
cpp04/ex02/Brain.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Brain.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/06 15:17:41 by rparodi #+# #+# */
|
||||
/* Updated: 2025/02/07 17:51:50 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Brain.hpp"
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
Brain::Brain() {
|
||||
for (int i = 0; i < 100; i++) {
|
||||
std::ostringstream oss;
|
||||
oss << "I'm thinking about the number " << (i + 1);
|
||||
idea[i] = oss.str();
|
||||
}
|
||||
}
|
||||
|
||||
Brain::~Brain() {
|
||||
|
||||
}
|
||||
|
||||
Brain& Brain::operator=(Brain &value) {
|
||||
return (value);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue