CPP01 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
newZombie.cpp ファイル

Implements the newZombie function. [詳解]

#include "Zombie.hpp"
newZombie.cpp の依存先関係図:

[ソースコード]

関数

ZombienewZombie (std::string name)
 Creates a new Zombie on the heap.
 

詳解

Implements the newZombie function.

newZombie.cpp に定義があります。

関数詳解

◆ newZombie()

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.

引数
nameThe name of the new zombie.
戻り値
A pointer to the newly created Zombie object on the heap, or NULL if allocation fails.

newZombie.cpp29 行目に定義があります。