feat(ex01): it works
This commit is contained in:
parent
b9ff91c653
commit
1a167101bb
6 changed files with 94 additions and 0 deletions
9
ex01/zombieHorde.cpp
Normal file
9
ex01/zombieHorde.cpp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include "Zombie.hpp"
|
||||
|
||||
Zombie *zombieHorde(int n, std::string name) {
|
||||
Zombie *horde = new Zombie[n];
|
||||
for (int i = 0; i < n; i++) {
|
||||
horde[i].setName(name);
|
||||
}
|
||||
return horde;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue