44 std::cerr <<
"Error: Failed to allocate memory for N Zombie in a single allocation." <<
std::endl;
49 for (
int i = 0; i < N; ++i) {
50 new (&horde[i])
Zombie(name);
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
virtual const char * what() const
Declares the Zombie class and the zombieHorde function.
Zombie * zombieHorde(int N, std::string name)
Creates a horde of Zombies on the heap.