-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnodohumano.h
51 lines (48 loc) · 1.26 KB
/
nodohumano.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef NODOHUMANO_H
#define NODOHUMANO_H
#include <string>
#include <ctime>
#include <QDebug>
#include <stdlib.h>
#include <vector>
struct NodoHumano{
int id;
QString nombre;
QString apellido;
QString pais;
QString creencia;
QString profesion;
QString correo;
QString continente;
QString ubicacion;
std::string momentoNacimiento;
int listaPecados[7];
NodoHumano* listaHijos[8];
NodoHumano* siguiente;
NodoHumano* anterior;
NodoHumano(int pId, QString pNombre, QString pApellido, QString pPais,
QString pCreencia, QString pProfesion, QString pCorreo){
id = pId;
nombre = pNombre;
apellido = pApellido;
pais = pPais;
creencia = pCreencia;
profesion = pProfesion;
correo = pCorreo;
momentoNacimiento = obtenerNacimiento();
for(int i = 0; i < 7; i++){
listaPecados[i] = 0;
}
for(int i = 0; i < 8; i++){
listaHijos[i] = NULL;
}
siguiente = NULL;
anterior = NULL;
continente="Ninguno";
ubicacion="Purgatorio";
}
std::string obtenerNacimiento();
NodoHumano* clonarHumano(NodoHumano* humano);
bool cumpleFiltro(QString filtro);
};
#endif // NODOHUMANO_H