ajout sujets et fini ex01 d01

This commit is contained in:
hugogogo
2022-02-05 17:11:24 +01:00
parent 5e3d23ba8f
commit e6929e8e12
7 changed files with 141 additions and 0 deletions

12
d01/ex01/ZombieHorde.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "Zombie.hpp"
Zombie* zombieHorde( int N, std::string name ) {
Zombie *zomboz = new Zombie[N];
for (int i = 0; i < N; i++)
zomboz[i].put_name( name );
return zomboz;
}