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
30class Zombie {
31 private:
32 std::string name;
33
34 public:
39
44
49
53 void announce(void);
54};
55
63Zombie *zombieHorde(int N, std::string name);
64
65#endif
Represents a Zombie.
Definition Zombie.hpp:30
void announce(void)
Announces the zombie.
Zombie()
Default constructor for the Zombie class.
Zombie(std::string name)
Parameterized constructor for the Zombie class.
~Zombie()
Destructor for the Zombie class.
Zombie * zombieHorde(int N, std::string name)
Creates a horde of Zombies on the heap.