CPP01 1.0
|
Declares the Zombie class and related functions. [詳解]
クラス | |
class | Zombie |
Represents a Zombie. [詳解] | |
関数 | |
Zombie * | newZombie (std::string name) |
Creates a new Zombie on the heap. | |
void | randomChump (std::string name) |
Creates a Zombie on the stack and makes it announce itself. | |
Declares the Zombie class and related functions.
Zombie.hpp に定義があります。
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.
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 行目に定義があります。
void randomChump | ( | std::string | name | ) |
Creates a Zombie on the stack and makes it announce itself.
The zombie is automatically destroyed when the function exits.
The zombie is automatically destroyed when the function exits.
name | The name of the new zombie. |
randomChump.cpp の 27 行目に定義があります。