CPP01
1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Zombie.hpp
[詳解]
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* Zombie.hpp :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kamitsui <kamitsui@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2025/04/14 20:25:40 by kamitsui #+# #+# */
9
/* Updated: 2025/04/25 23:40:58 by kamitsui ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
18
#ifndef ZOMBIE_HPP
19
#define ZOMBIE_HPP
20
21
#include <
cstdlib
>
22
#include <
iostream
>
23
#include <
string
>
24
30
class
Zombie
{
31
private
:
32
std::string
name;
33
34
public
:
38
Zombie
();
39
43
Zombie
(
std::string
name);
44
48
~Zombie
();
49
53
void
announce
(
void
);
54
};
55
63
Zombie
*
zombieHorde
(
int
N,
std::string
name);
64
65
#endif
iostream
string
cstdlib
std::basic_string
Zombie
Represents a Zombie.
Definition
Zombie.hpp:30
Zombie::announce
void announce(void)
Announces the zombie.
Zombie::Zombie
Zombie()
Default constructor for the Zombie class.
Zombie::Zombie
Zombie(std::string name)
Parameterized constructor for the Zombie class.
Zombie::~Zombie
~Zombie()
Destructor for the Zombie class.
zombieHorde
Zombie * zombieHorde(int N, std::string name)
Creates a horde of Zombies on the heap.
Definition
zombieHorde.cpp:35
ex01
Zombie.hpp
構築:
1.9.8