d01 ex01 change name ZombieHorde because subject changed
This commit is contained in:
12
d01/ex01/zombieHorde.cpp
Normal file
12
d01/ex01/zombieHorde.cpp
Normal 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;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user