blob: 5b960b6e3cafa6f3221ea1abb60e1ba0cf79e934 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef __POPULATION_VIVANTE_H
#define __POPULATION_VIVANTE_H
#include "cellule.h"
#define N 5
class population_vivante {
private:
size_t nmax;
cellule pop[N*N];
size_t vivantes;
public:
population_vivante(size_t);
void death(unsigned int x, unsigned int y);
void birth(unsigned int x, unsigned int y);
cellule& copiecell(unsigned int x, unsigned int y);
};
#endif
|