CPP01 1.0
|
Implements the newZombie function. [詳解]
#include "Zombie.hpp"
関数 | |
Zombie * | newZombie (std::string name) |
Creates a new Zombie on the heap. | |
Implements the newZombie function.
newZombie.cpp に定義があります。
Zombie * newZombie | ( | std::string | name | ) |
Creates a new Zombie on the heap.
The created zombie is named with the provided name. The caller is responsible for deleting the returned pointer. Handles potential memory allocation failure.
name | The name of the new zombie. |
newZombie.cpp の 29 行目に定義があります。